HI,
I need to know how to set class path for the client tag
under web service of build.xml in java.
I have to add the log4j.properties file to the client jar.
Thanks
Abhi
Say i have an xml file of this nature
some data
I wan to replace attributes of each later using one function in php:
example say:
replaceAttribute("collections","somecollection,"newcollection");
Hello,
Is it possible to use the Open XML sdk to manipulate parts of document which is currently open in the ofice app (word/ppt). I know the easiest thing is to use VSTO, but its slow and would involve clipboard use to insert elements, the OXML sdk is direct and simpler.
If somebody could post some code sample that would be great.
Thanks in advance
Rakesh
I want to add -Xlint:deprecated to the java compiler while building android app.
I've seen the compilerarg tag inside javac tags, but the generated build.xml for the standard project doesn't have such a tag.
Any hint?
Is there a way to add dependencies to an existing pom.xml via shell script?
Something like:
mvn dependency:add -DgroupID=com.acme -DartifactId=project
[Update]
Clarified that I want to add to an existing pom
I have an XML file which has many section like the one below:
<Operations>
<Action [some attributes ...]>
[some complex content ...]
</Action>
<Action [some attributes ...]>
[some complex content ...]
</Action>
</Operations>
I have to add an <Action/> to every <Operations/>. It seems that an XSLT should be a good solution to this problem:
<xsl:template match="Operations/Action[last()]">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
<Action>[some complex content ...]</Action>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
My problem is that the content of my <Action/> contains some xPath expressions. For example:
<Action code="p_histo01">
<customScript languageCode="gel">
<gel:script
xmlns:core="jelly:core"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sql="jelly:sql"
xmlns:x="jelly:xml"
xmlns:xog="http://www.niku.com/xog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sql:param value="${gel_stepInstanceId}"/>
</gel:script>
</customScript>
</Action>
The ${gel_stepInstanceId} is interpreted by my XSLT but I would like it to be copied as-is. Is that possible? How?
Hey,
is there a way to share xml-documentation of the parameters to all the overloads? Lets say I have 10 overloads of a method but they all share the first 5 parameter (I use C# so I cannot have optional parameters).
How do I do so that I do not have to write the same text for all of the parameters?
Is there a coldfusion analog for the deployment descriptor/web.xml file found in a jee web container? I know CF is running on top of JRun and that I could just tweak the jrun dd, but what about an application specific configuration file? Is there something like this that I'm not aware of or do you just have to roll your own?
Im using c#.net windows form applpication. I have an xml file which contains many nodes. How can I get the names of those nodes into a combobox. If possible avoid duplicate names.
Hi
I am trying to do unit testing of database access layer of my project.
But thing is i need to test this layer using apache derby database and during production testing i need to do it on oracle.
So can i use same xml representation of database to do so using dbunit ?
My question is :
I want to know when does a xLayout (or ViewGroup in general) add a child view from XML ? And by "when" I mean at what point of code, in what "pass" of the "traversal" of the UI toolkit ?
Which method of xLayout or ViewGroup should I override ?
I have done my homework : I have watched the "Writing Custom Views For Android" presented (by Adam Powell and Romain Guy) in the last Google I/O and I have read Adam Powell comments on this Google+ post.
I am using this code in my template file to display a static block in my left sidebar:
<?= $this->getLayout()->createBlock('cms/block')->setBlockId('leftSB1')->toHtml() ?>
I would like to exclude the block from one of my CMS pages. How do I do this?
I think it requires adding code to the 'Layout Update XML' section but I'm not sure what exactly.
Hi Everyone,
Does anyone know how to change the rowcount of a datagrid in flash after it has been created on the stage.
I am loading an xml file externally that contains the number of rows the datagrid should have, but the problem is that becuase this file is not loaded at runtime, it just picks the default 3 items. Maybe I have to reload the datagrid on the stage, or loop until it is defined.
Does anyone have experince of this.
Regards,
Chris
I need a python script that will do the following:
connect to a URL, and that URL will return a number like 1200.
Use the number, to download xml files named: 1 to x where x is the number from #1.
store the files in a particular directory.
Sorry I've never written a python script, so if you could guide me along that would be great (maybe with a some comments).
I will be running this as a cron job if that matters.
Create table testxml
(xmldata xml)
declare @var nvarchar(max)
set @var = N'?????? ?????? ????'
insert into testxml
select @var
After inserting , i am getting data from table like
select * from testxml
---------------------
????????
Can you provide me the solution?
I would like to convert this fluent approach to xml:
container.Register(
AllTypes.FromAssemblyNamed("Company.DataAccess")
.BasedOn(typeof(IReadDao<>)).WithService.FromInterface(),
AllTypes.FromAssemblyNamed("Framework.DataAccess.NHibernateProvider")
.BasedOn(typeof(IReadDao<>)).WithService.Base());
Is there any way of doing this, maintaining the simplicity?
I am using sed to extract parts of an XML I am interested in:
sed '/<car car_id="BMW" year="1999"/,/</car>/p' input
So what I really would like to get back is:
...
Instead I get back a bunch of other car elements.
Hi,
I want to create an xml element having two namespace as below:
element name="Root" xmlns:xsi="myXSI" xmlns:xsd="myXSD"
I have checked out with the existing APIs, but it is not getting in this form. I am getting as
Root xmlns:xsd:xsi="myXSI" xmlns:xmlns:xsd="myXSD"
I am using this APIss as below:
xmlTextWriterWriteAttributeNS(xmlWriter, BAD_CAST "xmlns:xsd", BAD_CAST "xsi" , BAD_CAST "myXSD", BAD_CAST "myXSI");
In an answer to another question it was mentioned that passing XML as a string parameter to a web service was bad practice. What is the reason for this?
Good Morning,
I was just hoping that someone could point me to a reference that defines about what JBOSS annotations are equivalent to what xml tags. I am particularly interested in these tags:
@WebContext in org.jboss.ws.annotation.WebContext
and
@SecurityDomain in org.jboss.annotation.security.SecurityDomain
What is the best practise solution for programmaticaly changing the XML file where the number of instances are definied ? I know that this is somehow possible with this csmanage.exe for the Windows Azure API.
How can i measure which Worker Role VMs are actually working? I asked this question on MSDN Community forums as well: http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/02ae7321-11df-45a7-95d1-bfea402c5db1
I'm using 2005 and the Native XML WebServices. The integrated authentication via HTTP:80 works fine. But i need the basic authentication which requires SSL. So if i change the web service to ssl i always get a connection reset (101). I tried several ports 80,443,9999 with the same outcome.
What is the error?
When using an XmlDataSource is there good way to handle exceptions that are caused when the remote XML file is unavailable? I'm somewhat new to .NET and using C#.