|
I think the safest way regarding browser compatibility is to use XSL/XSLT to transform the XML document into a plain XHTML document without any fancy browser specific stuff.
A good starting point for reading is this XSLT Tutorial[^]. Besides this, I'm quite sure the internet is full of more resources. Simply google for the involved technologies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
thanks for your assistance stefan
|
|
|
|
|
I am looking for either a schema or non-3rd party parser to convert a doc,txt, or rtf to xml.
Thank you in advance.
Any help would be greatly appreciated.
|
|
|
|
|
|
Maybe I am not explaining myself correctly. I am currently trying to programmatically convert a doc,txt, or rtf to xml so that I retrieve specific information from its content.
I have been searching for a corresponding schema or a non 3rd party xml parser so that I can apply to code to my application so that I may be able to parse the data within the document.
I have looked everywhere. I cannot use a third party product for this.
I am writing a web app in asp.net/vb.net. The final product will be launched on a closed network.
|
|
|
|
|
yacastr wrote: I have been searching for a corresponding schema or a non 3rd party xml parser
yacastr wrote: convert a doc,txt, or rtf to xml
A XML parser is "not" going to convert any non-XML format into XML. MSWord can export doc and rtf to WordML, I don't know if it will also export "TXT" to WordML. See Google results[^]
led mike
|
|
|
|
|
hi i have a problem but could not find its solutions i hope you people can help me,
i am fetching data from SQL2000 using XMLSQL so now data is in XML format and then i am accessing that data through XSLT and displaying into a web page in HTML table format and now i want to Export that selected info [that is in HTML table format] in Excel file. how can i do that.
note: i dont want to export the whole info that comes directly from the Query i want to do some manipulation on resulted query data and then want to export new info into Excel file.
regards
I love .NET
|
|
|
|
|
Store the manipulated data in another dataset and then transfer that data alone.
|
|
|
|
|
Hi,
Heres a sample XML document:
<?xml version="1.0" encoding="utf-8"?>
<Sample>
<Name>
<!--Indicates the first name-->
<FName>A</FName>
<!--Indicates the Middle name-->
<MName>M</MName>
<!--Indicates the last name-->
<LName>B</LName>
</Name>
<ID>1</ID>
</Sample>
If i get the count of childnodes of the node <name>, using the following statement: xmlNamenode.Childnodes.count, it returns 6 (i.e) it also includes the comments as a child node. Is there any way to directly get the count of number of elemets (excluding comment nodes) instead of alll the childnodes?
Thanks and Regards
Madhu
|
|
|
|
|
Maybe this one document.SelectNodes("/*").Count
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi,
Thanks. it solved the issue...
Thanks and Regards
Madhu
|
|
|
|
|
I am using XmlTextWriter in a function to create a Document element. The function returns e.g. the following:
<Document>
<UserID>ID blah blah</UserID>
</Document>
Now I call this function once for each document inside another method that creates one single XML message containing all <Document> elements. I would like to know how I can insert the text returned from the Document function into the XML message, and keep the correct indenting, as happens when I call WriteElementString.
|
|
|
|
|
Would it be an option to pass an XmlTextWriter into the method that writes the document element, so in the method that creates the overall xml message you instanciate one XmlTextWriter and pass it to the method together with each document.?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
We are trying to enforce a couple of business constrainrs with XPATH .
A sample xml node is as follows:
.....
.....
<event>
<element>IE</element>
<elementtype>browser</elementtype>
<eventtype>Navigate</eventtype>
<value>http://www.....com/</value>
</event>
.......
.......
If we need to ensure that the XML has ATLEAST one 'element' node containing text as "IE" we do:
<xsl:template match="element[count(IE) < 1]" >
<xsl:text>ERROR: Atleast one IE element needed</xsl:text>
</xsl:template>
But we need to ensure that ATLEAST one of the IE 'event' nodes has a combination of 'element' as IE and 'value' node containing the text "Logout" i.e.
<event>
<element>IE</element>
<elementtype>....</elementtype>
<eventtype>Navigate</eventtype>
<value>...Logout...</value>
</event>
How do we enforce this occuurrence constraint through template?
|
|
|
|
|
What's a good rule of thumb to use when deciding to add an element or attribute to a datatable?
|
|
|
|
|
Maybe this can help: USING ELEMENTS VS. ATTRIBUTES[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
Nice.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
XimpleWare is proud to announce the release of version 2.0 of
VTD-XML, the next generation XML parser/indexer. The new
features introduced in this version are:
* VTD+XML version 1.0: the world's first true native XML index
that is simple, general-purpose and back-compatible with XML.
* NodeRecorder Class that saves VTDNav's cursor location for
later sequential access.
* Overwrite capability
* Lexically comparisons between VTD and strings
To download the software, please go to
http://sourceforge.net/project/showfiles.php?group_id=110612
To read the latest benchmark report please go to
http://vtd-xml.sf.net/benchmark1.html
To get the latest API overview
http://www.ximpleware.com/vtd-xml_intro.pdf
|
|
|
|
|
i am fetching some data from SQL based on JOINs [from 2 tables] and then utilizing that XML file and transforming through XSLT and now i need another JOIN and then to compare some fields returned from 1st Query to 2nd Query and then need to display that data through XSLT. how can i achieve.
.NET
|
|
|
|
|
Maybe this can help: Multiple Source Documents[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi i am taking some data from xml file through xslt and then displaying selected data in HTML table format on a page and now i want to export that HTML table into excel how can do that.
I love .NET
|
|
|
|
|
|
Hello!
I'm trying to use an XSL stylesheet to transform an XML document into a CSV file. This works
quite fine, except one problem: XSL outputs an XML header:
<?xml version="1.0" encoding="utf-8"?>
"Item 1","Sub-Item 1.1","SubItem 1.2"
"Item 2","Sub-Item 2.1","SubItem 2.2"
"Item 3","Sub-Item 3.1","SubItem 3.2"
"Item 4","Sub-Item 4.1","SubItem 4.2"
Is there any XSL command that prevents the output of the first line?
Best regards
Dominik
|
|
|
|
|
XSLT <xsl:output> Element[^] You're looking for the omit-xml-declaration attribute.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|