Skip to main content
Question

api - extension attributes spaces not escaped in xml

  • July 18, 2015
  • 1 reply
  • 0 views

Forum|alt.badge.img+1

Hi

I am writing a process tool for a help desk using casper and other tools, we have a lot of attributes created for devices but im having trouble with getting xml details a lot of the names have spaces like "ASSET LOAN - LOAN START DATE"

The xml response doe not escape these spaces so im not able to all it in the same way as I normally would.

Im using php and simplexml, so my call looks like this:

$pickedup = $xml->extension_attributes->extension_attribute->ASSET LOAN - GUARANTOR EMAIL

But obviously the spaces will be incorrect. Is there any way to force the api to escape the element names to make them safe?

Or can anyone suggest a better way to call them?

Thanks,

1 reply

Forum|alt.badge.img+12
  • Contributor
  • 153 replies
  • July 19, 2015

Are you able to wrap it in double quotes and it still work? I don't have experience with simplexml and don't have access to testing php right now


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings