Here is my code, maybe you will notice right away what I'm missing :
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = domFactory.newDocumentBuilder();
Document doc = builder.parse(fileName));
XPathFactory fact...
I have about 45 XML data files and I need to create XSDs for them.
I have Visual Studio 2008 installed. What I am doing right now is opening up each XML file and creating the XSD from the menu option and then saving the XSD.
Is there a command line option for me to create all XSDs?
If not, is there a bulk XSD generation tool that can ...
Hi, All,
Next question: I have "InputDoc" xml document and xslt file in order to transform into other "OutputDoc" xml document.
You can find examples xslt and xml documents below.
<?xml version="1.0" encoding="UTF-8"?>
<InputDoc>
<InputCollection>
<InputItem>
<InputValue>Value_1</InputValue>
</InputItem>
</InputCollec...
I have XML document which is something like
<X><Y><Values><double>1.0</double><double>2.0</double></Values>...
I am trying to get those values:
toXpath.MoveToRoot(); // the X node name could be different
toXpath.MoveToFirstChild(); // this should be Y
string q = "Y/Values";
foreach (XPathNavigator x in toXpath.Select(q))
In x.Val...
Hi everyone :D,
I am trying to extract the first letter of every word for a sentence to form an one word via XSLT.
Sample Input
`ABC HBO ORACLE 123 (Hello Person)`
Expected Output:
AHO123HP
Thanks in advance :).
P.S. I am also using the XALAN Processor.
...
I've been doing some reading up on XML serialization, and from what I understand, It is a way to take an object and persist the state in a file. As for the implementation, it looks straight forward enough, and there seems to be a load of resources for applying it. When should XML serialization be used? What are the benefits? What are sit...
I'm trying to use feedparser (an excellent library) to parse WordPress export files, and a (minor) inconsistency between WordPress version is causing me a huge headache.
WordPress 2.x doesn't include atom:link tags in the XML output (without_atom_tags.xml). When parsed, namespaced elements are available without the prefix:
>>> feed = ...
Hi!
I am wondering if it is possible to use XPath or XSL to determine if a XML node value is numerical or alpha/numerical. (It is user entered data.. so it could be either..)
I was searching for some sort of function in XPath to do this.. but I couldn't find any.
for example:
<example>
<test1 attribute="123">12dfffg23</test1>
...
First off, this is not my design, working with a WCF service that is a little strange. I have a lot of checkboxes/input's and when they are clicked/filled out I need to add that value to a certain part of the xml string, which is the hidden input's value. Is this close to the right way? The values are intended to be put into the section...
I am trying to generate XAML from XElements.
<Style xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Style.BasedOn>
<StaticResource>
<StaticResource.ResourceKey>
<Type xmlns="http://schemas.microsoft.com/winfx/2006/xaml">
<Type.TypeName>p:Window</Type.TypeName>
</Type>
...
I am trying to edit the xml code in an Open office document so that it will print a date depending on today's date.
Basically I want it be something like this:
If today's date is between the first and the 15th, then the due date is the first of the following month.
else if today's date is between the 16th and the 31st, the due date is...
At work I am parsing large XML files using the DefaultHandler class. Doing that, I noticed that this interface allocates many Strings, for element names, attribute names and values, and so on.
From that, I thought about creating an XML parser that only does the absolute minimum of object allocation. Currently I need:
one StringBuilder...
I have a problem.
I have an XML file that contains information about 100 courses.
I have an XSL file that nicely displays the list of 100 courses.
But what if I want to only display 1 course. Can I pass a parameter to the XSLT file to tell it to only display "ENGL 100" ?
The XML looks something like this:
<document>
<menu>
<it...
Here's what I need to do:
sample XML (not sure if it displays right here)
<Tags>
<Tag ID="0" UserTotal="1" AllowMultipleSelect="1">
<Name>BaseSamples</Name>
<Sample ID="546" Count="1">Sample1 </Sample>
<Sample ID="135" Count="1">Sample99</Sample>
<Sample ID="544" Count="1">Sample2</Sample>
<Sample ID="5818" Count="1">Sam...
Alright...I have kind of a big quesstion...ok here goes...Usually if i understand it well...web services work in a way that i write a method to get some data from the database and then some other user/client adds a reference and calls my service and gets the data...now in my case i have to get the data and actually post it to the user/cl...
Hello.
When the XML file was convert to ASCII. It is different values for user at the three characters of utf and UTF.
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
I tried to create a new xml file with vs2005. utf-8 form file generated by default.
which one is a more standard definition? thanks.
...
I think we all know this page, but the benchmarks provided dated from more than two years ago. So, I would like to know if you could point out the best xml parser around. As I need just a xml parser, the more important thing to me is speed over everything else.
My objective is to process some xml feeds (about 25k) that are 4kb in size (t...
Okay sample output data is below, it looks something like JSON, but it's not formatted exactly like JSON. So I am wondering, how can I get this data looking like XML, preferably with php?
Thanks!
[{ action:'getallregions', reply:[{regionid:'1',name:'Blue',description:'Research Route',color:'508CEB',active:'true',parentRegionId:'0',paren...
Hi,
I would like to delete just this one node, for example:
<Sample ID="544" Type="0">Sample2</Sample>
from this XML, for example:
<Tests> <Test ID="0" AllowMultipleSelect="1">
<Name>BaseSamples</Name>
<Sample ID="546" Type="0">Sample1 </Sample>
<Sample ID="135" Type="0">Sample45</Sample>
<Sample ID="544" Type="0">Sample2</Sa...
The application I've been working on takes user input from a form, and builds nodes in an XML file from this user input. On the mainform, when the index of a combo box is changed, the contents of this xml file are parsed, looking for the inner text of of the nodes that match the selected index, then displays the results in a datagridview...