I've been tasked with writing some XSLT 2.0 to translate an XML document to another XML document. I'm relatively new to XSLT but I have learn alot during the days I've do this. During this time I have had to map simple values, i.e. 002 -> TH etc. This has been fine for small lists of less than 10 values, I used xsl:choose. However I need...
Hi!
I have a similar scenario as this one:
public class TestLinq2Xml
{
private XElement GenerateSomeXml()
{
return XElement.Parse(@"<MyObject>
<Properties>
<Name>My object 1</Name>
<Position>0; 0; 0</Position>
...
I am learning Silverlight and WPF on my own to expand my programming base. I am following this tutorial, and I am currently stuck on part 3. I am up to the point where my application requests and receives a response from digg.com, but I cannot figure out how to properly dimension the XDocument class (as the tutorial shows) to read the x...
I'm actually playing around with the last.FM web serivce API which I call via REST. When I get the response I try to convert the result into a XDocument so I could use LINQ to work with it.
But when I pass the result string to the XDocumnet constructor an ArgumentException is thrown telling me that "Non white space characters cannot be...
For my assignment I have been assigned the task of creating a DTD for representing a virtual-geocaching game.
I am having a problem representing the location which can be either gps or wifi or both but not more then one of each. How would i represent this? The closest I could think of is listed below.
<!ELEMENT location ((gps|wifi)+)>...
I have the need to express simple conditionals as program input. The input must be human readable.
Is XML suited for this?
For example, I have the following conditional statement:
If AnimalType = Leopard And (SourceCountry = Kenya Or TargetCountry = Kenya) Then
ZooKeeper=Jack
Else
ZooKeeper=Jill
End If
Expressing the above ...
Hi there
I'm using VB 2008 and I'm trying to add a xmlns="mynamespace" attribute to an XDocument's root element.
The XML document is created by a 3rd party, and I have loaded it into a VB XDocument object. As it comes, it has no namespaces. I have been working on a local copy and I added in a namespace in a text editor, so that I can u...
Hello,
I am running into quite an annoying issue while trying to deserialise a specific XML document using XmlSerializer.Deserialize() method.
Basically, I have a strongly typed XSD with an element of type double. When trying to deserialise the element for a specific XML document, I get the usual "System.FormatException: Input string ...
I'd like to convert an external XML document without any XSD schema associated with it into a fluent .NET object.
I have a simple XML file like:
<application>
<parameters>
<param></param>
<param></param>
</parameters>
<generation />
<entities>
<entity ID="1">
<PropTest>Test</PropTest>...
Hi,
I have an application that needs to map relational database to XML.
The issue is that the database structure is given (I cannot change it) and the XML Schema is given (comes from WSDL).
I need to let the user of my application to tell the system that a given column in a table is mapped to a given element in the schema. Then my app...
Hi, I have a problem in reading and loading items of a collection which belongs to another collection in vb 2005.Those are all nodes of xml file. For exemple:
Toto is a node in xml file, an item of collection Tocollect and also a child-node of Tocollect, Tocollect is an item of Collect and a child-node of it.
When write the code, are ...
Background:
I have a collegue who needs to convert text from a PL/SQL method into XML compliant text, as he is constructing a excel spreadsheet by updating a text template.
...
I've frequently seen a space preceding the closing slash in XML and HTML tags. The XHTML line break is probably the canonical example:
<br />
instead of:
<br/>
The space seems superfluous. In fact, I think that it is superfluous.
What is the reason for writing this space?
I've read that the space solves some "backwards compatibil...
I am using the (.NET 3.5 SP1) System.Xml.Linq namespace to populate an html template document with div tags of data (and then save it to disk). Sometimes the div tags are empty and this seems to be a problem when it comes to HTML. According to my research, the DIV tag is not self-closing. Therefore, under Firefox at least, a <div /> is ...
I have an xml and it has nodes with i:nil="true" in it. What does that mean?
For example:
<FirstName i:nil="true" />
Does that mean something different than:
<FirstName />
If so, what is the difference?
...
I'm trying to design an XML document structure for my application. I want to store a list of holes like following
<Holes>
<Hole id='1' dia='0.1' depth='2'/>
<Hole id='2' dia='0.2' depth='1.67'/>
<Hole id='3' dia='0.3' depth='0.44'/>
</Holes>
In another part of my document I want to refer to a hole by its id. e.g.
<Drill useHoleWit...
XPathReader is/ was an implementation of a forward reading XML parser (built on XMLReader) which allowed you to register XPath queries for it to find (or at least a subset of XPath called Sequential XPath).
This seems to be the perfect choice for easy access to elements of xml streams, or case where you just need to pull some information...
I have a web service and client that are passing around strings containing character references such as  (0x1A). These are invalid in XML 1.0 but valid in XML 1.1. Axis's XML parser is throwing exceptions because of these character references. Is there a way to force it to parse the response as XML 1.1, or to insert the XML decla...
I have an XML document from an external source.
<?xml version="1.0" encoding="utf-8"?>
<ns0:Info xmlns:ns0="http://www.ZomboCorp.com/">
<Name>Anthony</Name>
<Job>Developer</Job>
</ns0:Info>
I need to deserialize it into an object like this.
public class Info
{
public String Name { get; set; }
public String Job { get; ...
There are several comparisons of the different java xml data binding tools online. I'd like to see this become a useful comparison between the different c++ tools for xml data binding.
Which tool are you using for xml data binding in c++ ? CodeSynthesis and xmlbeanscxx are a couple of the available choices.
I'd like everyone to add...