xml

Does xmls nodes sequence matter?

are <parent> <first_child>1111111</first_child> <second_child>2222222</second_child> </parent> and <parent> <second_child>2222222</second_child> <first_child>1111111</first_child> </parent> should be considered as xmls with the same structure or not? ...

Deserializing XML into class obj in C#

This is one of the entries I have in a huge XML file of over 200 such entries. <TradeFills> <TradeFill> <Broker>xxx</Broker> <CustomerAccount/> <qwFillTransID>xxxxxxxxxxxxxxxxxxx</qwFillTransID> <qwPrevTransID>xxx</qwPrevTransID> <qwGroupTransID>xxxxxxxxxxxxxxxxx</qwGroupTransID> <GroupTransID>xxxxxxxx</GroupTransID> <Tra...

Select a Tree item

I'm working on a tree component using a XMLLIST as a data provider. <list> <menuItem label="Home" menuItemId="1" > <menuItem label="Info 1" menuItemId ="4"></menuItem> </menuItem> <menuItem label="Services" menuItemId="2" > </menuItem> <menuItem label="About" menuItemId="3" > </menuItem> </list> ...

Parse Error Exception

I am parsing a weather data feed and it works with certain locations but errors out with this message on some locations: 09-22 10:40:33.364: WARN/System.err(3347): org.apache.harmony.xml.ExpatParser$ParseException: At line 465, column 29: not well-formed (invalid token) Any ideas what might be happening? Here is a snippet of the x...

Having trouble deserializing XML file into class object

This is a sample of the XML file I am attempting to deserialize <TradeFills> <TradeFill> <Broker>xxx</Broker> <CustomerAccount/> <qwFillTransID>xxxxxxxxxxxxxxxxxxx</qwFillTransID> <qwPrevTransID>xxx</qwPrevTransID> <qwGroupTransID>xxxxxxxxxxxxxxxxx</qwGroupTransID> <GroupTransID>xxxxxxxx</GroupTransID> <TransID>x</TransID...

XML in SQL Server 2005

All, I am inserting as xml datatype in a table, an XSLT document. Somewhere in my XSLT document I am using the character &#60; for a reason. However when inserting to the table, the SQL Server replaces the &#60; with &lt; Any ideas how to store it without having SQL Server to change it? Thanks, M ...

Sharepoint Template and Configuration XML Tags for cutsom Templates

Hello, I'm new to sharepoint and I'm trying to figure out how to use and implement custom templates. I have figured out how to load them into the collection list but I'm trying to find out all the information I can about the: and xml tags. What are the attributes and such? Any sources that someone can recommend? ...

How can I extract values from an XML file with Perl's XML::Simple?

Considering that XML::Simple is the only module which can be used, I am stuck in retrieving the values from an XML. The structure goes below: <testxml> <dev> <A> <tables> <datatables> <table>a1</table> <table>a2</table> <table>a3</table> ...

How to escape javascript code from xml?

I can't remember of find, but I know there were a way using something like <[CODE to write code inside the xml without have problems with the xml reserved symbols.. Does anyone knows? ...

XSLT Escaping Characters

I have the following fragment in XSLT. Is there a way to rewrite it without escaping the characters < and > with the ASCII equivalent? <coord> ... <xsl:with-param name="substringIn" select="'' ''"/> <xsl:with-param name="substringOut" select="'&#60;/coord&#62;&#60;coord&#62;'" /> ... </coord> I have a string of space delimited...

vb.net - Getting the Xpath of XSD schema elements

Can the Xpath of XSD schema text() elements be retrieved in vb.net? For example, how can you get this Xpath from the following schema; parent/child/grandchild <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSche...

building an XDocument with a webclient downloaded string

I am using the following methods to download an xml file private void LoadXMLFile() { WebClient xmlClient = new WebClient(); xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(XMLFileLoaded); xmlClient.DownloadStringAsync(new Uri("chart.xml", UriKind.RelativeOrAbsolute)); } void XMLFileLoaded(object sen...

Recommend me some good Java for Beginners books

I've been looking into Android development, and while I understand the concepts, all of the Java stuff goes right over my head. XML is easy to pick up on, but I quickly found out that advanced Android development is simply not possible without a good understanding of Java. I looked at this book and it seems pretty good: http://www.amazon...

JAXB supress XSI and xmlns

I am using JAXB to marshall some groovy objects. I am getting output like this: <desiredskillslist> <employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; <name>C Development</name> </employeeDesiredSkills> <employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi=...

How can I take an xml string and display it on my page similiar to how StackOverflow does it with 'insert code'?

Hi All, I'm using the DataContractSerializer to convert and object returned from a WCF call to xml. The client would like to see that xml string in a webpage. If I output the string directly to a label, the browser strips out the angle brackets obviously. My question is how can I do something similar to StackOverflow? Are they doing a ...

PHP Xpath help.

Hi, Can anyone point me to a good tutorial on xpath or give me a quick lesson here? Also if xpath is for querying xml, what would I need to use to modify the xml? I guess it would need to be something that works hand in hand with xpath? Cheers, Franky ...

Can someone provide an example for how to post XML using HTTParty and Ruby on Rails?

Hi All, I need to post some xml to a webservice and I'm trying to use HTTParty. Can someone provide an example as to how I go about doing so? Here is the format of the XML I need to post: <Candidate xmlns="com.mysite/2010/10/10" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; <FirstName></FirstName> <LastName></LastName> <Emai...

DomXML xpath what do I do next?

I have this code: $reader = new DOMDocument(); $reader->loadHTML($shell); $xpath = new DomXPath($reader); $xpath->registerNamespace('html','http://www.w3.org/1999/xhtml'); $res = $xpath->query('descendant-or-self::*[contains(@class,"content")]'); print_r($res); $shell is just a variable containing the following html code: <html xmln...

JSON vs XML Benchmarks? (C#)

Is there any read/write benchmarks comparing JSON and XML for C#? ...

IPhone Development - generate XML file

Hi guys, does anybody here know how to generate a XML file or string in the IPhone? Regards, Claudio ...