I am an XML beginner, using C# .NET 2.0/Visual Studio 2005.
What I have is a data sample in XML that I'd like to convert into strongly typed data structures. I also have an XSD for that file that I ran through the Visual Studio xsd.exe to generate the code for it. I ran it against System.Xml.Serialization.XmlSerializer It did a decen...
Hi
how to to sort an XML file using Qt
my file look like this :
<?xml version="1.0" encoding="UTF-8"?>
<project>
<task next="2" first="1" name="2" value="name1"/>
<task next="3" first="1" name="1" value="name2"/>
<task next="4" first="3" name="4" value="name3"/>
<task next="4" first="1" name="6" value="name4"/>
<t...
Hi
I want to create banner and do exchange with others.
Banner will be flash because it will load just entry titles with URL's from XML, which is on my site.
Is this possible at all?
Could someone point me to some tutorial or give me some tips?
Thanks in advance
...
I am using Apache Xerces 3.0.1 XInclude. I want to use the xinclude mechanism to include XML files. I have three XML files all in the same directory. test_a.xml xincludes test_b.xml which xincludes test_c.xml. When I just have test_a.xml xinclude test_b.xml, it works. However, when I have test_b.xml xinclude test_c.xml I get the followin...
I am attempting to find out why this xml document will not validate. I am new to this, but it all looks good. I am attemtping to validate it at http://www.validome.org/grammar/validate/
my xml document named contacts1.xml looks like this...
<?xml version=”1.0”?>
<!DOCTYPE contacts SYSTEM “contacts1.dtd”>
<contacts>
<contact>
<name>
<f...
I want to parse this file in Cocoa Application.but no parser for xml work well.Please help for parsing this file or other xml files like this.
Thanks...
My Xml File is as Under:
Hiren
<property id=\"license\">
<object>
<property id=\"color\">
<string>red</string>
</property>
<property id=\"expiresOn\">
...
Hi,
I am fixing a bug on an existing code concerning DocumentBuilder.parse. I have the below code:
String theOutput;
theOutput = response.encodeURL(prefix + "/include/sampleForConversion.jsp?" + request.getQueryString();
StreamSource xmlSource = new StreamSource(new URL(theOutput).openStream(), "http://sampleApps.net/static/da...
Hi! Why do I get my string two times in the output?
#!/usr/bin/perl
use warnings;
use strict;
use XML::Twig;
my $string = '<cd_catalogue><title>Hello, World!</title></cd_catalogue>';
my $t= XML::Twig->new( twig_handlers => { cd_catalogue => \&cd_catalogue, },
pretty_print => 'indented',
);
$t->parse( $string );
s...
There seems to be many questions WRT tool to generate diffs between xmls, but there wasn't this question yet, so anyone who knows this show me a link or paste any example anyone already solved this problem.
Canonicalizing an xml file means,
reordering the appearance of attributes
reordering the appearance of tags (selectable by comman...
I know this is a borderline case whether it really belongs to stackoverflow or superuser, but as it seems there are quite a few 'editing code' questions over here, I am posting it on SO.
I have a pile of XML files that someone in their infinite wisdom have decided to explode to a multiple files using the tags, which in result makes deb...
Using XML in this format:
<?xml version="1.0"?>
<GetResult version="1.0">
<Fetch>
<StartTime>2004-08-01 00:00:00</StartTime>
<EndTime>2004-08-01 00:00:00</EndTime>
</Fetch>
<Items>
<Item>
<Name>Item Name Number 1</Name>
<Data>
<Datum>
<Timestamp>2004-07-31 16:00:00+00:00</Timestamp...
Hi,
I have a small application that builds up a xml document using XDocument. However, after a while the app is using more than 1gb ram.
So I was wondering if there is anyway to make XDocument use the disk instead of in-memory. For example by opening a StreamWriter and save it to a file on the go.
Thank you in advance.
...
Dear ladies and sirs.
I have a stream which contains some XML. The XML may either be encoded using binary XML writer (for instance obtained from XmlDictionaryWriter.CreateBinaryWriter) or non binary XML writer (like as in XmlWriter.Create).
I wish to know which reader to use - the one from XmlDictionaryReader.CreateBinaryReader or the ...
I need a Class which has an semi-automatic 'to_s' method (to generate XML in fact).
I would like to iterate through all the automatic methods set up in my 'attr_accessor' line:
class MyClass
attr_accessor :id,:a,:b,:c
end
c=MyClass.new
So far I'm doing a basic:
c.methods - Object.methods
=> ["b", "b=", "c", "c=", "id=", "a", "a...
So I am trying to simply decorate a class to serialize it as XML. Here's an example of my problem.
[XmlElement("Dest")]
public XmlNode NewValue { get; set; }
The real problem here is that sometimes in this implementation the XmlNode can be an XmlElement or XmlAttribute. when it's an element this code works fine, but when it comes ...
I have a schema file which I would like to split in two parts. One with common fields and another with particular fields in JAXB (2.1) for reusability. How to do it?
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="content">
<xs:complexType>
<xs:sequence>
...
Hi Everyone,
I am having a problem when trying to replace a node within an xmlDocument, The strange thing is this works fine with certain XML documents (the xml is actually XAML and quite complex)
Although the Parents node is replaced and using the immediate window and looking at the Parent node the xml looks correct, the underlying X...
Hi all,
Is it possible to write a schema allowing mixing validated XML with just well-formed XML? Case in point is a data transfer application where requests consist of a bunch of meta-data (which we'd like to validate) and record-specific information (which is validated separately from the XML in the business logic, because the XML req...
Evidently MSXML6 doesn't support XSLT 2.0, at least not the max() function. I need to find out the node that contains the highest value among its siblings. They are in arbitrary order.
I want the order to remain identical so adding order-by and checking [0] is out of question.
I want to do this with a single XPath statement. I don't wa...
I have an XML document where the number of decimal places a particular xs:decimal should be reported in is held in a sibling node. I'm currently struggling to find a simple way to output this via the format-number function.
I can build a picture string with some other functions, but this seems terribly long-winded for what should be (at...