sabre-io / xml

sabre/xml is an XML library that you may not hate.
http://sabre.io/xml/
BSD 3-Clause "New" or "Revised" License
516 stars 77 forks source link

Root Element Read #162

Closed victorgp89 closed 5 years ago

victorgp89 commented 5 years ago

Hi, It's possible to read the name of the root element?

<?xml version="1.0" encoding="utf-8"?>
<GetHotelInfoRQ>
    <User>TestUser</User>
    <Password>TestPass</Password>
    <HotelCode>3403</HotelCode>
</GetHotelInfoRQ>

If I have this xml when a call parse method the root element dissapear.

Thanks for advance.

evert commented 5 years ago

Hi @victorgp89 ,

Can you share the code you are using to parse this? It will make it easier to answer the question,

evert commented 5 years ago

No response