Thanks for the suggestion. However, I am still trying to create an XML Parser
to do the same. The SaveAsWeb option creates a subfolder with all the
required files which I would like to avoid.
Below is the data.xml code which I am trying to develop a parser for. As you
can see there are 2 process blocks, each with their associated Cost values, I
am having difficulty extracting the 'Value' ($10, $20) stored in this 'Cost'
elements and displaying them in a HTML table. I am using the
getElementsByTagName method.
I could post my code if required, but my approach might be entirely wrong.
----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<VisioDocument>
<DocumentProperties>
<Title>Testing Visio to XML Conversion</Title>
<HyperlinkBase href=""></HyperlinkBase>
</DocumentProperties>
<Pages>
<Page ID="0" Name="Page-1" NameU="Page-1">
<Layer IX="0">
<Name>Flowchart</Name>
<NameUniv></NameUniv>
<Visible>1</Visible>
</Layer>
<Value Unit="STR">0.0000</Value>
<Label></Label>
<Shapes>
<Shape ID="1" UniqueID="{3ED7ACA7-B88A-4413-BB3C-FE8D0B76DBDC}"
Name="Process" NameU="Process">
<Text>Process 1 </Text>
<XForm>
<PinX Unit="IN_F">2.117125694444445</PinX>
<PinY Unit="IN_F">8.079724305555558</PinY>
</XForm>
<LayerMem>
<LayerMember>0</LayerMember>
</LayerMem>
<Prop ID="1" Name="Cost" NameU="Cost">
<Value Unit="STR">$10.00</Value>
<Label>Cost</Label>
</Prop>
<Prop ID="2" Name="Duration" NameU="Duration">
<Value Unit="STR">10</Value>
<Label>Duration</Label>
</Prop>
<Prop ID="3" Name="Resources" NameU="Resources">
<Value Unit="STR">1</Value>
<Label>Resources</Label>
</Prop>
</Shape>
<Shape ID="2" UniqueID="{64A09AC8-136C-4E64-97E4-A457E433D608}"
Name="Process.2" NameU="Process.2">
<Text>Process 2</Text>
<XForm>
<PinX Unit="IN_F">3.757874305555554</PinX>
<PinY Unit="IN_F">8.079724305555555</PinY>
</XForm>
<LayerMem>
<LayerMember>0</LayerMember>
</LayerMem>
<Prop ID="1" Name="Cost" NameU="Cost">
<Value Unit="STR">$20.00</Value>
<Label>Cost</Label>
</Prop>
<Prop ID="2" Name="Duration" NameU="Duration">
<Value Unit="STR">20</Value>
<Label>Duration</Label>
</Prop>
<Prop ID="3" Name="Resources" NameU="Resources">
<Value Unit="STR">2</Value>
<Label>Resources</Label>
</Prop>
</Shape>
</Shapes>
</Page>
</Pages>
</VisioDocument>
---------------------------- end of
data.xml------------------------------------------------
Appreciate the all the help,
Thanks