Skip to content

Two child nodes with same name #7

@mattiasghodsian

Description

@mattiasghodsian

When using parseXml( ); and the XML file has for example two node child's with similar names one of them gets replaced instead of getting grouped together

<?xml version="1.0" encoding="UTF-8"?>
<cbc:ID>1616</cbc:ID>
<OrderResponse>
	<cac:OrderLine>
		<cac:LineItem>
			<cbc:ID>1</cbc:ID>
		</cac:LineItem>
		<cac:OrderLineReference>
			<cbc:LineID>1.00</cbc:LineID>
		</cac:OrderLineReference>
	</cac:OrderLine>
	<cac:OrderLine>
		<cac:LineItem>
			<cbc:ID>2</cbc:ID>
		</cac:LineItem>
		<cac:OrderLineReference>
			<cbc:LineID>2.00</cbc:LineID>
		</cac:OrderLineReference>
	</cac:OrderLine>
</OrderResponse>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions