Resolving an xpath that includes namepsaces in Java appears to require the use of a NamespaceContext object, mapping prefixes to namespace urls and vice versa. But I can find no mechanism for getting a NamespaceContext other than implementing it myself. This seems counter-intuitive. Is there any easy way to acquire a NamespaceContext ...
Hi I am trying to get my mind around XSDs, XML and namespaces but I can't get things to work the way I want them to.
I have an XSD which, at the moment, starts like this:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ex...
I have a DTD and I would like to limit a few attribute properties' possible values to, say, "yes" or "no".
<!ATTLIST node postgrad CDATA "">
How do I do that?
...
I have a well formed XHTML page.
I want to find the destination URL of a link when I have the text that is linked.
Example
<a href="http://stackoverflow.com">programming questions site</a>
<a href="http://cnn.com">news</a>
I want an XPath expression such that if given programming questions site it will give http://stackov...
After spending a lot of time and code on programming in Swing, I thought this can't be state-of-the-art Java GUI building. After not finding a user-friendly visual gui bilder for eclipse I stumbled upon declarative GUI building with XML UI toolkits... and I thought: This must be it! I think it's the right way to go, easy and also close t...
Hello.
I wonder how i could easily describe Multiple selection combobox using XML and Schema.
Currently iam using this definition:
<xs:element name="RefPartner">
<xs:complexType>
<xs:attribute name="isSalesRepresentative" type="xs:boolean"/>
<xs:attribute name="isPolicyResponsible" type="xs:boolean"/>
<xs:attribute name="isPolic...
I want to automatically format an XML schema definition file. All the normal pretty-print stuff: linebreaks after end-element, indentiing. I have seen this answer, and this elisp, which gives me the basics. Beyond what is there, though, I would like line-breaks between attributes within angle-brackets.
Like so. Before:
<s:schema el...
For build automation, I would like to invoke the XML Data Binding Wizard in Delphi from a build script. I have found the WSDLImp.exe, but this tool seems to generate WSDL based Delphi code only.
Is the XML schema binding wizard (which generates Delphi code for XSD files) available as a command line tool?
...
So, I'm trying to use XMLResolver to load an xml file. It works fine when I create an xmlreader from a filename but fails when I do so using a stringreader. It gives me an XslLoadException: XSLT compiler error. The inner exception is "An entry with the same key already exists."
public override object GetEntity(Uri absoluteUri, str...
I am working on a Windows Desktop application that will store a number of documents, there will initially be 4 different types of documents, each as a windows form, each with some common details (document ID, client ID etc), and then different fields based on the document type.
I plan on using XML to specify the fields for each form. So...
I want to save a set of key, value pairs (string, int) between runs of a Python program, reload them on subsequent runs and write the changes to be available on the next run.
I don't think of this data as a configuration file, but it would fit the ConfigParser capabilities quite well. I would only need two [sections]. It's only a few hu...
I have a xml doc with around 150 entries. I am sorting the entries in several fashions. One is alphabetical, which is displayed via XSLT and works perfectly, the others are by category and solution, which have issues with alternating banding color by row.
The problem arises when I iterate over entries that are not being displayed, it se...
I have a function that transforms XML according to a XSLT. To test it, I'm using it in a jsp but it's entering a lot of breaks before my output. It seems to be the breaks I enter when setting variables:
<c:set var="blah" value="blah" />
<c:set var="blah2" value="blah2" />
That will show two line breaks before the output. Is there a...
I just learned, here, about nxml-mode, which, according to the README, is a
major mode for GNU Emacs for
editing XML documents. It supports
editing well-formed XML documents and
also provides schema-sensitive editing
of XML documents using RELAX NG
Compact Syntax.
Is there a mode that does the same for W3C XML Schema?
I...
I need to import some XML schemas.
In Delphi, I would use the the XML Data Binding Wizard to generate the Pascal code from the schemas.
Is there something like that in Delphi Prism to avoid writing all this boilerplate code?
...
What is the difference between #PCDATA and #CDATA in DTD?
...
I have done XML parsing before but never on a massive scale.
If I'm working with many documents similar to this format:
<?xml version="1.0" ?>
<items comment="something...">
<uid>6523453</uid>
<uid>94593453</uid>
</items>
What is the fastest way to parse these documents?
1) XML DOM
2) XML Serialize - Rehydrate to a .NET Object
3) ...
Possible Duplicate:
How to remove an XmlNode from XmlNodeList
Hi, How can i delete a set of nodes from an XML file.?
Here is a code snippet.
string path = @"C:\Documents and Settings\e454935\Desktop\NUnitSettings.xml";
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
System.Xml.XmlDocu...
Hi,
i have to create xml something like:
<xml version="1.0" encoding="UTF-8"?>
<tns:Message>
<tns:Header>
<tns:to>CCM</tns:to>
<tns:from>CPM</tns:from>
<tns:type>New</tns:type>
</tns:Header>
</tns:Message>
from my java object.
I am trying to do something like this
DocumentBuilderFactory factory
...
Hi,
I have created XML file for a Blackberry application ,and I have used
root.getFirstChild().setNodeValue("ABCDE");
to set the node value.
An exception is thrown while adding node value.
What can be done?
PLease help.
Thanks in advance.
...