I'm using DataContractSerializer to serialize a class with DataContract and DataMember attributes to an XML file. My class could potentially change later, and thus the format of the serialized files could also change. I'd like to tag the files I'm saving with a version number so I at least know what version each file is from. I'm still d...
I'm having problem with sending XML-data using HTTP POST to an API.
If I send well formatted XML, I get an error message:
Server Exception: Cannot access a closed Stream
If the XML isn't well formatted, I get HTTP 500. And if I just send an empty string instead of a string with XML, I get back an error message: EMPTY REQUEST.
I ...
I am trying to dynamically create a XML for a webservice but when I test the service I get the following error
XML Parsing Error: no element found
Location: http://stuiis.cms.gre.ac.uk/dd615/aspweb/WatCoursework/Service.asmx/getMusicdetailsSql
Line Number 1, Column 39:
--------------------------------------^
// Make a new XML document...
Just as the title asks: are there any XML pull parser implementations in a Perl library?
I looked at XML::TokeParser, but it's nine years old! I'm sure there's something out there that is functional?
...
Hi
I have a bit of Xml that looks something like this:
<books>
<book id="1">
<name>My book</name>
<author>My author</author>
</book>
<book id="2">
<name>My other book</name>
<author>My other author</author>
</book>
</books>
I would like to have it look like:
<books>
<book id="1">
<name id="1">My book</n...
i want to transform some xml into HTML that has the following format:
<TR><TD> col1 <TD> col2 <TD> col3 </TR>
Note: The output is HTML, complete with optional closing tags omitted. This is the problem, and the reason the question exists.
A snippet of the XSL i'm using is:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl=...
Hi, I am required to extract the information at a particular "area" of this large collection of xml. But i'm not familiar with extracting xml. I've looked through the site and tried various ways but all i get back is "Error in my_thread_global_end(): 1 threads didn't exit"
Here's the url of the xml i'm getting my data from:
ftp://ftp2.b...
Hi all-
I've been working on importing XML into an iPad Core Data application. I have a working NSXMLParser implementation for my files, and have been able to import the simpler (ie attribute-only) elements into Core Data.
Some of the XML dated has nested elements with text, and I'm a bit stumped on how to get Core Data to play nicely ...
I am using GNU/Linux (Ubuntu + Gnome).
I have been using netbeans on windows since a long time and on Linux I prefer to use vi or emacs.
Now my problem is I want to totally migrate into Linux for all my development works but i have seen that netbeans do not has that appealing look as it used to have on windows. Same with eclipse. I kno...
I have the following XML data:
<Activity>
<ObjectGroup type="default">
<Object id="1874" name="PR1010Date" type="reference label" index="10" columnNo="0" dynamic="true">
<Description>Date</Description>
<Value instance="0">30/06/2010</Value>
</Object>
<Object id="1875" name="PR1020LoggedBy" type="reference label...
NSXMLParser allows SAX parsing of either an NSData block or from a URL source.
The problem is that both these methods require the entire XML source to be known before parsing begins.
Suppose I have a stream of XML Data (say a sequence of NSData objects) and I want to process the stream using NSXMLParser or another cocoa class, how can ...
I want to use a customized template file for magento homepage.
I used the following code in the layout/local.xml file of my theme as described in this
tutorial
<new_layout translate="label">
<label>New Layout</label>
<reference name="root">
<action method="setTemplate"><template>page/home.phtml</template></action>
...
XSL stylesheet should output following code to Internet Explorer:
<xml:namespace prefix="vml" ns="urn:schemas-microsoft-com:vml"/>
But when I execute following template with any XML
<xsl:template match="*|node()">
<xml:namespace prefix="vml"
ns="urn:schemas-microsoft-com:vml"/>
</xsl:template>
IE throws parsi...
In my program I get passed some XML. If values in this XML fulfil a user defined criteria I store the xml otherwise it gets discarded. The problem I have is that I need to be able to allow the user to define the criteria (also combining multiple element with “OR” and “AND”) and then applying this when I get the XML. This is a C# applicat...
When I open an xml file in Visual Studio and browse it, I want to get the xpath of a certain node at the cursor like right click and choose "get xpath from this node" or something like that. How can we do that in Visual Studio 2010 or which tools/addons to use to do that?
Hope to hear from you all.
...
The xml file is having the following structure
<RootElement>
</RootElement>
i need to append the "Child" element to both RootElement and TestChild .
For this I'm using the following code.
List<string> Str = new List<string> {"a","b"};
XmlDocument XDOC = new XmlDocument();
XDOC.Load(Application.StartupPath + ...
for example, we have this xml:
<p>[TAG]
<span>foo 1</span>
<span>foo 2</span>
[/TAG]
<span>bar 1</span>
<span>bar 2</span>
</p>
how can i detect <span>-tags between words [TAG] and [/TAG] ("foo 1" and "foo 2" in this case)?
UPD. for example i need to change nodeValue of each span between [TAG] and [/TAG]
...
How to Convert a Jtree To Xml and Xml back to a Jtree.what is the Procedure and anybody please let me know
Thank u
...
I received a user defined XML file and want to programmatically read and display it on a browser using ASP.net. I also want to allow users to add more tags, elements with their attributes according to the existing schema through the web interface used to display the XML. Where can I find some techniques with examples?
Example:
<?xml v...
<webservicecep>
<quantidade>2</quantidade>
<retorno>
<cep>31010330</cep>
<uf>MG</uf>
<cidade>Belo Horizonte</cidade>
<bairro>Santa Teresa</bairro>
<tipo_logradouro>Rua</tipo_logradouro>
<logradouro>Paraisópolis</logradouro>
<resultado>1</resultado>
<resultado_txt>sucesso. logradouro encontrado local</resultado_txt>
<limite_buscas>5</lim...