I have two xml files "authors.xml" and "artworks.xml"
I want to write queries over the XML data set in a file "combine.xq" using the XQuery language virsion 1.0 or 2.0
and generate single XML output file "output.xml" .
In my application i have an XML like this..
I want to perform a search in this XML Based on SubID, ModuleId, TaskName, between start and end dates. Please help me. Also i need all the parents of the searched nodes without siblings.
I am not answering your entire question, but I have a thought about one component of it:
Do you have any control over the date format of the initial XML that is provided to you?
If you were to receive the date values in ISO format (YYYY-MM-DD), then you could use a simple string comparison (greater than or less than) in your xpath or xsl to determine whether the dates fall in date ranges.
[EDIT]I found an online tool dat also validates the xml against the xsd and that seems to work. it even says what the exact error is. I'll have to have a look at the .Net code. If anyone has a good article about it, let me know. (I'll also, of course, search for myself)[/EDIT]
I am new to this world and perhaps starting at the wrong end. Anyway. I am developing a web shop. I want to display product information from another source that I have access to. That source is in xml file format.
my question is: How can I do display the data from another source on my web side?
Thank you jschell
I am a little bit closer to what to do. I am trying to build a web shop (with out the cart and the check out functon) and need to display the data on my web site. I have few question´s:
1. Is the XML a separate file stored at my server or is the xml integrated in the xml?
2. Can I use html to display the data in the xml or is java or css necessary?
<credttm xmlns="25/02/2011 04:50:31">
but i want that xmlns appears ONLY as an attribute of the root like this:
I have an algorithm to parse a complex XML document using DOM via a recursive 'Navigate' function. Values are ultimately displayed on a form. New nddes are added to the document by supplying a ancestry list to a 'Create node' function, while nodes are updated by making use of Xpath.
Sounds very good but I dont like it because of all the hardcoded nodenames.
Now I have taken the corresponding XSD and laundered it through XSD.EXE to give me a set of classes that correspond to the XML document.
I like the idea that I can de-serialize the XML document into this class, present the data on a form, make any changes and serialize it out to a new XML document. Is it really that simple?
The first thing that troubles me is that I could potentially be rewriting the entire document just to correct a single spelling mistake...
See my post above. If you are using Visual Studio there's a utility called XSD.exe which you run form the VS command prompt.
XSD.exe <Schemaname1.XSD> <Schemaname2.XSD> /c
this will generate a class based on your XSD's - Note if your schema imports from another schema then that schema name has to be included in the command. The /c at the end will give you a C# class.
While I am exploring going down this route, I currently use the document object model (DOM) using a recursive Navigate algorithm from Ch 14 of Stehen Fraser's "Pro Visual C++/CLI and the .NET 3.5 Platform". My post above gives more insight into how I use this.
I also draw heavily from Bipin Joshi's "Beginning XML with C# 2008 From Novice to Professional"
Pardon me if i have posted at wrong place. I wasnt quite sure where to post this.
my application generates report as doc file.
In the process, it opens word file physically, writes a single rtf template line and text into it, save(s) word file as WordML, closes word file, deletes it.
And this is done many times (at least 15 times).
This physical opening of word, etc takes upto 5-7 seconds each times, and thus report generation takes large minutes.
I would like to know if there is some rtf-wordML generator code (free). Please help me with same.
modified on Wednesday, February 9, 2011 9:34 AM
Last Visit: 3-Jun-20 22:40 Last Update: 3-Jun-20 22:40