xml

Where can I find a copy of the wddx.dtd?

I have a project that involves parsing wddx webservice responses. The DOM DocumentBuilder is throwing an exception that the XML is malformed as it does not reference a dtd. I inserted a DOCTYPE statement and now it is throwing an exception malformed - cannot find the protocol. I am quite certain it is my reference to the DTD and I now...

How can I get the value of an attribute called xlink:href of an xml node by using php

i just cant do it, dont kno whey. How can I get the value of an attribute called xlink:href of an xml node by using php. Please please someone just give me a nudge. i am new to php This is the XML Document <?xml version="1.0" encoding="UTF-8"?> <topicMap id="1HLCM3FXT-28MTV0W-50" xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlin...

XML addressbook

What would an address book saved as an XML document need (name, address, email, phone number,...)? And what would be best practice to save pictures? Should I save the XML files in an database? Or group everything in a zip file? Any other thoughts? ...

Which xml structure allows faster Add/Del/Update

Which XML structure allows me faster adding,deleting,updating of a node? My assumption is the first one as the xml hierarchy is not that deep. What do you think ? <Departments> <Department Id="a Guid" IsVisible="True" /> </Departments> OR <Departments> <Department> <Id>a Guid</Id> <IsVisible>True</IsVisible> <...

Can nokogiri search for "?xml-stylesheet" tags ?

I need to parse for the an xml style sheet <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="/templates/xslt/inspections/disclaimer_en.xsl"?> Using nokogiri I have tried using doc.search("?xml-stylesheet").first['href'] but I get the error `on_error': unexpected '?' after '' (Nokogiri::CSS::SyntaxErro...

IE drop XML response

Hi, I have an HTML form with a post method and target to an iframe (on the same page). The expected response from the server is an XML (content type is text/xml). I noticed that when the “Turn on feed reading view” is checked, IE grab the response and I get an empty response in the onload event of the target iframe. If I uncheck the “Tur...

I do not want to parse some tags in XML

Currently this would be a sample XML that I am working on: <smsq> <sms> <id>96</id> <to>03333560511</to> <msg> danial says: hahaha <space> nothing. </msg> </sms> </smsq> Now please notice, that the tag can contain other tags (which should not be parsed) and I had to make a dtd for that. The dtd was something like this: ...

how does one remove <![CDATA[ ]]> tags from around text in XML using Hpricot?

i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this? ...

Sort of Insert/Update statement in LINQ to XML for XElement

I have this xml structure: <Departments> <Department Id="a Guid" IsVisible="True" /> </Departments> I have created the xml file with: <Departments /> Now I want to add a bool value to IsVisible for a certain Id If that Id does not exist in the xml file I want to make an insert creating a new Department with Id + IsVisible. My...

Make a second element on XSD required when a first element is used

Hi, I have a simple XML file, with 3 basic elements. The first one is required (minOccurs=1) and the second and third are optional. However, if the second element is used, then I would like the make the third one required. He's the XML: <?xml version="1.0" encoding="utf-8" ?> <resultado> <consulta fonte="1" origem="Origem">0</...

Parsing Multiple XML Docs from a Continuous Stream with NSXMLParser

My iPhone App is socket based and receives a continuous, non-delimited stream of XML documents one after the other in which I intend to parse with the event-based NSXMLParser. Example: 2 documents one after the other <?xml version='1.0' encoding='UTF-8' ?><document name="something"><foo>bar</foo></document><?xml version='1.0' encoding=...

Problem with reading XML node

Hello, I try many different solution on this site and none seems to work for me . I getting a xml file from a website and it's returned to me in a string. using the code below I need to read the nodes in the "entry" section of the xml file. but it always comes up "0" meaning no nodes found. the only thing left I think is the XML file i...

Sorting a subtree and storing it in an xsl:variable

I'm working with an XSL stylesheet, and I'm trying to use the method shown here to store a sorted subtree as a variable. I'm using saxon 8.7 vis the xml-maven-plugin to transform my XML file. Here's the code that I have: <xsl:variable name="miniDays"> <xsl:for-each select="//day[position() > $firstPosToShow]"> <xsl:sort se...

how to add/insert conditional node into XML using linq to XML

I generated an xml file like this: XElement employees = new XElement("Work", new XElement("record", new XElement("Name", textBox1.Text), new XElement("Phone", "206-555-0144"), new XElement("Address", new XElement("Street1", "123 Main St"), ...

how to revise xml parser exception "<?xml ... ?> prolog must be at the document start"

i use follows code to get a XML Document (by JDOM in java): SAXBuilder builder = new SAXBuilder(); Document doc= builder.build(new URL("http://www.sasatuan.com/api/api.php")); and i get a Exception: org.jdom.input.JDOMParseException: Error in building: http://www.sasatuan.com/api/api.php:1: <?xml ... ?> occurs after content. T...

How to save a toggle state that is created using a MovieClip in Flash. How to save state in variable and pass to PHP, and save to XML?

I have MovieClips on my Flash Stage that when clicked on--they toggle ON/OFF. My goal is that when a user clicks either ON/OFF--then leaves the flash website--another user can visit the site--and see that state of that MovieClip was either left ON/OFF. I would need a way that when a user toggles ON/OFF--that state is saved in a variabl...

getting large content while XML parsing

Hi all, I am parsing a xml file, in that i have one tag like content, in this tag there is large content more than 3000 characters, i have taken NSSring to set data and get data methods. when i print that content, it is not displaying anything, how can i get the data from xml. thank you Psudheer ...

Parse XML data into WordPress MySQL database as custom fields

I have an XML job feed which I would like to integrate with my website which is running on a WordPress platform. I have a good understanding of WordPress and am familiar with it's database schema. The XML job feed is delivered automatically via FTP to my websites server via a zipped archive file which contains an XML file with the data...

Tutorial about XMLObject

Appreciate anyone could point me to a nice tutorial of using XMLObject from org.apache.xmlbeans. I have been doing axis2 which gives me a response of XMLObject. However, I can't get to the getTextContent(). After googling for hours, I realise I maybe need to convert the XMLObject back to ArrayList or something like that. ...

iReport How to group data from xml

Hello all i don't understand something very fundamental in Ireport and its driving me crazy i have simple xml data source: <a> <a1> <a2> </a2> </a1> <a1> <a2> </a2> </a1> </a> <b> <b1> <b2> </b2> </b1> <b1> <b2> </b2> </b1> </...