Click here to Skip to main content
15,895,142 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML to HTML Conversion in .Net Pin
honeyss24-Feb-08 18:37
honeyss24-Feb-08 18:37 
GeneralRe: XML to HTML Conversion in .Net Pin
led mike25-Feb-08 8:15
led mike25-Feb-08 8:15 
QuestionHow do we hide public properties when using a XMLweb service? Pin
pubududilena22-Feb-08 23:28
pubududilena22-Feb-08 23:28 
QuestionHow to decode from XML file..... Pin
Soundari22-Feb-08 18:27
Soundari22-Feb-08 18:27 
QuestionRDLC (Report) using XSD Dataset Pin
Jaydev Jangid22-Feb-08 1:56
Jaydev Jangid22-Feb-08 1:56 
QuestionCan I use the index on XSL to get the record Pin
vanhawk19-Feb-08 17:10
vanhawk19-Feb-08 17:10 
GeneralFirefox & XML Pin
Bassam Abdul-Baki18-Feb-08 7:03
professionalBassam Abdul-Baki18-Feb-08 7:03 
QuestionHow to get the exact node info - XML parsing question Pin
Joe_P18-Feb-08 5:53
Joe_P18-Feb-08 5:53 
Hi My xml looks like this and I have pasted the code below to parse. The issue is : The first two table nodes have just the LocnId info. So when I fetch LocnId and Zip code, the result of parsing is like this

LocnId Zip
1 30339
2 20000
8 undefined
9 undefinde

Expected output is
LocnId Zip
1 null
2 null
8 30339
9 20000

<NewDataSet>
<Table>
<LocnId>1</LocnId>
</Table>
<Table>
<LocnId>2</LocnId>
</Table>
<Table>
<LocnId>8</LocnId>
<Zip>30339</Zip>
</Table>
<Table>
<LocnId>9</LocnId>
<Zip>20000</Zip>
</Table>
</NewDataSet>

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.load("data.xml");

var x = xmlDoc.getElementsByTagName('Table');

for (var i = 0; i < x.length; i++)
{
LocnId = xmlDoc.getElementsByTagName("LocnId")[i].childNodes[0].nodeValue;
Zip = xmlDoc.getElementsByTagName("Zip")[i].childNodes[0].nodeValue;
}

I am trying to figureout other methods to fetch the node values, but havent figured out yet, any links/help is greatly appreciated.
Thanks
Joe
AnswerRe: How to get the exact node info - XML parsing question Pin
N a v a n e e t h18-Feb-08 19:23
N a v a n e e t h18-Feb-08 19:23 
GeneralGetting maximum id Pin
N a v a n e e t h14-Feb-08 23:44
N a v a n e e t h14-Feb-08 23:44 
GeneralRe: Getting maximum id Pin
led mike15-Feb-08 4:36
led mike15-Feb-08 4:36 
GeneralRe: Getting maximum id Pin
N a v a n e e t h15-Feb-08 18:05
N a v a n e e t h15-Feb-08 18:05 
GeneralRe: Getting maximum id Pin
led mike19-Feb-08 10:00
led mike19-Feb-08 10:00 
GeneralRe: Getting maximum id Pin
henningbenk16-Feb-08 2:30
professionalhenningbenk16-Feb-08 2:30 
QuestionXML Schema to XML File Pin
That's Aragon14-Feb-08 18:19
That's Aragon14-Feb-08 18:19 
GeneralRe: XML Schema to XML File Pin
led mike15-Feb-08 4:39
led mike15-Feb-08 4:39 
GeneralRe: XML Schema to XML File Pin
That's Aragon17-Feb-08 17:52
That's Aragon17-Feb-08 17:52 
QuestionDataSet to XML & from XML to Databse Pin
LAYEEQ AHMED KHAN13-Feb-08 19:04
LAYEEQ AHMED KHAN13-Feb-08 19:04 
GeneralRe: DataSet to XML & from XML to Databse Pin
led mike14-Feb-08 5:28
led mike14-Feb-08 5:28 
GeneralRe: DataSet to XML & from XML to Databse Pin
#realJSOP15-Feb-08 5:17
mve#realJSOP15-Feb-08 5:17 
GeneralAssistance Required Pin
rajanponnalagu13-Feb-08 6:20
rajanponnalagu13-Feb-08 6:20 
GeneralHas Anyone ever worked on Veda Advantage? Need Some help. Pin
Gandalf_TheWhite11-Feb-08 19:45
professionalGandalf_TheWhite11-Feb-08 19:45 
GeneralRe: Has Anyone ever worked on Veda Advantage? Need Some help. Pin
led mike12-Feb-08 5:07
led mike12-Feb-08 5:07 
GeneralRe: Has Anyone ever worked on Veda Advantage? Need Some help. Pin
Gandalf_TheWhite12-Feb-08 18:34
professionalGandalf_TheWhite12-Feb-08 18:34 
GeneralRe: Has Anyone ever worked on Veda Advantage? Need Some help. Pin
led mike13-Feb-08 6:55
led mike13-Feb-08 6:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.