When working with xml allot, you’ll find that this little ‘trick’ might come in handy. Editing large xml structures is a pain. So why not convert them to a nice array? It’s done like this: The xml: <PipeMsg> <Header> <Task>Logon</Task> <AuthenticationToken>sdfdg4-hkjty45-4544-sdfdsf4</AuthenticationToken> <CreationDstamp>54641215</CreationDstamp> </Header> <Body> <UserName>Crazy</UserName> <Password>cinderella </Password> </Body> </PipeMsg> Now convert to an array: $objXml = ‘the xml in the [...]