Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not reading all nodes #134

Open
millerrob1000 opened this issue Nov 27, 2017 · 2 comments
Open

Not reading all nodes #134

millerrob1000 opened this issue Nov 27, 2017 · 2 comments

Comments

@millerrob1000
Copy link

millerrob1000 commented Nov 27, 2017

Didn't see this issue in the documentation but it's only hitting the first node in my XML document. For example I have multiple "Alert" nodes

<CTAAlerts>
<TimeStamp>20171127 11:47</TimeStamp>
<ErrorCode>0</ErrorCode>
<ErrorMessage/>
<Alert>...</Alert>
<Alert>...</Alert>
<Alert>...</Alert>

Even though I'm using a for loop it only returns the value I want from the first node and ignores the rest. Am I missing a feature that's not mentioned?

@ivensdenner
Copy link
Contributor

Is this your complete XML?

If it is, it doesn't look like a valid XML document

If it isn't, can you post your complete xml document?

@millerrob1000
Copy link
Author

No it's not, I was just giving an example of what I was trying to achieve. Here's the full XML: http://www.transitchicago.com/api/1.0/alerts.aspx
Basically I'm trying to go in each "Alert" node and check for values and such, but it's not looping. It's only hitting the first node then returning out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants