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...
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...
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 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>
<...
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...
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...
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:
...
i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this?
...
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...
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</...
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=...
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...
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...
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"),
...
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...
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...
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
...
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...
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.
...
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>
</...