xml

Word 2003 XML: Looking for XSL or XSD to render the document in browser

I've used OpenOffice 3.2 to convert a word doc into Microsoft Word 2003 XML. I am looking for and XSD or XSL that I can append to the document to show it in my browser. Can anyone point me in the right direction> ...

unique id to record xml

how can I add to each node I add to xml a unique index value for example I have <events> <event><id>0</id> </event> <event><id>1</id></event> </events> I want to add another event "node" that the id will be 6 /edited/ i have created xsd an added to the id elment autoincrease =true but idont really know wha...

xml dtd- how to avoid parsing the content of an element?

Among the elements that consist my xml, I have got element let's call it 'X' that can contain many different kind of inner elements. Therefore I'd like to define the DTD parser to avoid parsing its content during its XMl validation. I tried to define this elemtn by: <!ELEMENT X ANY> and got error message that the inner element inside ...

How can I extract the fb:profile-pic uid attribute value using jQuery?

From the following XML, I must extract the value of the uid attribute (557103888) on the fb:profile-pic element: <li class="ui-widget-content ui-corner-tr ui-draggable"> <fb:profile-pic height="32" width="32" linked="false" uid="557103888" style="width: 32px; height: 32px;" class=" fb_profile_pic_rendered"> <img class=""...

Perl Object to XML Using XML::Simple

I'm attempting to use the XML::Simple CPAN module to convert output from our database into a simple XML structure. The problem is that the output being returned isn't what I was hoping for no matter what options I attempt to pass to XML::Simple. The database table we're trying to output is just a bunch of items with the definition: CRE...

Question about selecting a child in xPath

Looking at w3schools for xPath (feel free to give me other references), you can select all the children of bookstore, but what if I wanted to only select the second book element? How can I do that? <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <b...

xpath with dom document

I'm trying the find a xml node with xpath query. but i cannot make it working. In firefox result is always "undefined" and chrome throws a error code. <script type="text/javascript"> var xmlString = '<form><name>test</name></form>'; var doc = new DOMParser().parseFromString(xmlString,'text/xml'); var result = doc.evaluate('/form/name'...

Developing RSS reader for iOS?

I like to make an app that reads articles from a website ad RSS or JSON. What method do I use to grab the XML or JSON to my app? How do I tell when the data is available locally? Thanks. Edit: I'm using Objective-c for iOS. I need code for iOS please. ...

XML Parsing with Java, walking DOM tree

We are studying how to parse through the DOM tree in Java. Quick question, in the below partial code my prof gave us, he creates an ArrayList and adds the Document object to it. I've only used the ArrayList to add items to the list like String, int, etc. In this case, when he adds the Document object to it, does Java automatically put...

Why use an XML parser?

Hi all, I'm a somewhat experienced PHP scripter, however I just dove into parsing XML and all that good stuff. I just can't seem to wrap my head around why one would use a separate XML parser instead of just using the explode function, which seems to be just as simple. Here's what I've been doing (assuming there is a valid XML file at ...

Reading Non Standard Namespace XML using E4X in AS3?

Hey, I am trying to parse some XML in AS3 that I recieve thru a WebService call to C#. C# is serializing using a DataContract so the namespace is non standard. Here is what the xml looks like: <User xmlns="http://schemas.datacontract.org/2004/07/UserDatabaseManipulation.POCO" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; ...

How can I use LINQ to indentify if a particular node exists?

Sample XML: <MenuDataResult> <Items> <Item> <ItemType>Submenu</ItemType> <ItemTitle>Level22</ItemTitle> <Menu> <MenuSelected>false</MenuSelected> <ChildMenuSelected>false</ChildMenuSelected> </Menu> </Item> <Item> <ItemType>Submenu</ItemType> <ItemTitle>Level21</ItemTitle...

xml parsing using xpath and xquery

I have a xml file <events date="30/08/2010"> <event> <title>here</title> <description> This is first Event This is first Event This is first Event This is first Event This is first Event This is first Event This is first Event This is first Event This is first Event This is first Event </description> </event> </events> <events date="31...

Adding values to Nested Dictionary in C#

I have an XML file of the following structure <Root> <Child Name="First"> <Data Name="a" val="0"/> <Data Name="b" val="1"/> <Data Name="c" val="20"/> <Data Name="d" val="10"/> <Data Name="e" val="2"/> <Data Name="f" val="0"/> <Data Name="g" val="0"/> <Data Name="h"...

Processing XML with XSL

I've got a 2-part question... I have some XML that looks like: <trans-unit id="70" restype="x-text:p"> <source xml:lang="en-en">option 4</source> <target xml:lang="fr-fr">option 4</target> </trans-unit> <trans-unit id="71" restype="x-text:p"> <source xml:lang="en-en">option 5</source> <target xml:lang="fr-fr">option 5</target> </trans...

Automatic editor of XML (based on XSD scheme)

Is there any approach to generate editor of an XML file basing on an XSD scheme? (It should be a Java or Python web based editor). ...

How to pass XML from C# to a stored procedure in SQL Server 2008?

I want to pass xml document to sql server stored procedure such as this: CREATE PROCEDURE BookDetails_Insert (@xml xml) I want compare some field data with other table data and if it is matching that records has to inserted in to the table. Requirements: How do I pass XML to the stored procedure? I tried this, but it doesn’t work:[...

WPF XML Databind to ComboBox

HI All, I am trying to bind some XML into a combobox using the below code: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="myComboBoxControl"> <UserControl.Resources> <DataTemplate x:Key="dataTempla...

Shortest XPath to find minimum/maximum of sibling dateTime nodes

Hi I have the following simple xml: <root> <item> <d>2002-05-30T09:00:00</d> </item> <item> <d>2005-05-30T09:00:00</d> </item> <item> <d>2003-05-30T09:00:00</d> </item> </root> Now I want to find the minimum or maximum dateTime node using XPath. My solution at the moment is: /root/item[not(number(translate(./d, 'TZ:-', ...

Parsing a XML file in Android

Can anyone provide me with the info to parse an XML file in an Android application... any link on this will b helpful... ...