JMP has functions for loading and parsing XML.
If you have the XML as text strings, use ParseXML
ex =
"<table name='fromxml'><col name='x'>[1 2 3]</col><col name='y'>[11 22 33]</col></table>";
Parse XML( ex,
On Element(
"table",
Start Tag(
New Table( XML Attr( "name" ) )
)
),
On Element(
"col",
End Tag(
New Column( XML Attr( "name" ),
Set Values( Parse( XML Text() ) )
)
)
)
);
From a file:
Parse XML( LoadTextFile("c:\temp\test.xml"),
"table",
On Element(
Start Tag(
New Table( XML Attr( "name" ) )
)
),
On Element(
"col",
End Tag(
New Column( XML Attr( "name" ),
Set Values( Parse( XML Text() ) )
)
)
)
);