Hi All!!
Does anyone have a solution to convert the XML below which has optional Property elements and multiple namespaces (I've unsuccessfully tried stripping the namespaces using this approach
http://dpawson.co.uk/xsl/sect2/N5536.html#d7035e1753):
Code:
<?xml version="1.0" encoding="utf-8"?>
<Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
UserId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" When="2010-07-07T16:42:26.1735814+01:00">
<Body Name="ABC">
<Properties xmlns="http://schemas.someone.com/xyz/1234">
<Property xsi:type="UniqueID" Name="Field_A">
<Value>12345678-1234-1234-1234-123456789012</Value>
</Property>
<Property xsi:type="List" Name="Field_B">
<Value name="Default Value">1</Value>
</Property>
<Property xsi:type="String" Name="Field_C">
<Value>Something</Value>
</Property>
</Properties>
</Body>
</Message>
To something like this:
Code:
<Message>
<Who>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</Who>
<When>2010-07-07T16:42:26.1735814+01:00</When>
<Type>ABC</Type>
<Field_A>12345678-1234-1234-1234-123456789012</Field_A>
<Field_B>1</Field_B>
<Field_C>Something</Field_C>
</Message>
I've been banging my head against the walls for days on this!!! Help, Help, Help!!!!