While executing the following code:
doc = builder.parse(file);
where doc is an instance of org.w3c.dom.Document and builder is an instance of javax.xml.parsers.DocumentBuilder, I'm getting the following exception:
Exception in thread "main" java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unk...
In jQuery I'm trying to select only mount nodes where a and b's text values are 64 and "test" accordingly. I'd also like to fallback to 32 if no 64 and "test" exist. What I'm seeing with the code below though, is that the 32 mount is being returned instead of the 64.
The XML:
<thingses>
<thing>
<a>32</a> <-- note, a here i...
I need to transform one document formated in xml into JSON and vice versa.
I belive this is a common requirement and perhaps there's still one library that does that work.
Know any?
...
The following XML was generated by serializing .Net objects:
<?xml version="1.0" encoding="utf-8"?>
<Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://EPS.WebServices/WebServiceSchema" >
<Method xmlns="http://EPS.Library/RequestSchema">PackPlacementUpdate</Me...
What's the difference between Sync and Async in the method open(method,url,async) in AJAX.
...
So here's my XML file:
<book>
<title>Book Title</title>
<author>Book Author</author>
<pubDates>
<date format="standard">1991-01-15</date>
<date format="friendly">January 1991</date>
</pubDates>
</book>
I'm loading the data into an XDocument, then retrieving it from the XDocument and adding it into a B...
I am quite the n00b but lately I have been playing with parsing some XML data. I actually found a nice feature on this site where I can get to a specific node with a specific attribute by doing: docFoo.SelectSingleNode("foo/bar/baz[@name='qux']); However, the data looks like this:
<saving-throws>
<saving-throw>
<name>Forti...
Hello I have an XML similiar to below, which needed to be sorted using the date field.
<root>
<Node1>
<date></date>
</Node1>
<Node1>
<date></date>
</Node1>
<Node1>
<date></date>
</Node1>
<Node1>
<date></date>
</Node1>
<Node2>
<date></date>
</No...
Is there an XPath way of recovering directly one specific attribute of preceding sibling nodes of an XML node using an XPath query?
In the following example, I would like to retrieve the values of the alt attribute of each img nodes that precede the div element marked with the id=marker.
<content>
<img alt="1" src="file.gif" />
<im...
Hey,
what's the utility of the method XMLHttpRequest.responseXML.
...
Hello,
I know this has been asked elsewhere, but none of the questions or answers helped.
I open an xml file in my SL 4 app:
StreamResouceInfo sri = Application.GetResourceStream(new System.Uri("z.xml", UriKind.Relative));
if (null != sri)
{
XDocument xDoc = XDocument.Load(sri.Stream);
}
"Root element is missing" exception.
...
`from xml import xpath
from xml.dom import minidom
xmldata = minidom.parse('model.xml').documentElement
for maks in xpath.Evaluate('/cacti/results/maks/text()', xmldata):
print maks.nodeValue
`
and I get result:
85603399.14
398673062.66
95785523.81
But I needed to be:
85603399.14
NO SPACE
398673062.66
NO SPACE
95785523.81...
I am marshalling (serializing) JAXB beans to output stream. How can I add DOCTYPE declaration and xml processing instructions to ouput?
I am doing currently marshalling like this:
JAXBContext jaxbContext = JAXBContext.newInstance("com.example.package");
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Mar...
As I understand the XML spec, the significance of the order of child elements is not guaranteed. XML parsers tend to keep child elements in the same order as they occur in the XML document, but they are under no obligation to do so.
If that's so, then are browsers free to render the <li>s in an <ol> or an <ul> in a different order than ...
Hi
Im trying to create a xml the should look like this
<?xml version="1.0" encoding="iso-8859-1"?>
<MyTestSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Tests>
<Test>
<messaure>1</messaure>
<height>4</height>
</Test>
<Test>
<messaure>4</messaure...
I have to convert a dll file to XML in command line.
I've created an xsd file fron the dll (by the command :xsd.exe ---.dll)
now I'm searching command that can create the XML.
Can so,one help me??
...
I want to convert a tab delimited text file to a XML file. I was able to do it with a single character delimiter. But how do i extend it to tabs? I am coding in C# and using Visual Studio 2010.
...
what's the best/simplest/easiest way to create rdf/xml with php?
ideally i would like to use simpleXML - but i believe it doesn't support namespaces?
failing that maybe simpleDOM? id rather not use DOM since it tends to confuse me a lot!
perhaps there is some other way?
thanks for your help!
:)
nb: i tried to post an example but co...
Hi,
I was wondering can I ORDER BY my query by node of an XML typed column?
For example I have a table
ID (int) | Data (XML)
Where Data column stores XML in form similar to this
<?xml?>
<Data>
<SimpleOrderedValue>1</SimpleOrderedValue>
<ComplicatedInternals>
...
</ComplicatedInternals>
</Data>
I want query this tabl...
I've had the following <a> tag:
<a href="http://myserver/_forms?url={@FileRef}&amp;id=5">...</a>
One of the files is called "File's got apostrophe.xml". The output of the XSL is:
<a href="http://myserver/_forms?url=/blah/File&amp;#39;s got apostrophe.xml&id=5">...</a>
The problem is that the apostrophe is HTML-esca...