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

Matching Xml Elements with symbols #22

Closed
lukencode opened this issue Apr 11, 2010 · 5 comments
Closed

Matching Xml Elements with symbols #22

lukencode opened this issue Apr 11, 2010 · 5 comments
Labels

Comments

@lukencode
Copy link

Having some trouble matching elements such as:

    <geo:point>
      <geo:lat>50.7</geo:lat>
      <geo:long>-3.5333333</geo:long>
    </geo:point>
@johnsheehan
Copy link
Contributor

What's the API?

By default RS strips all namespaces, so you should be able to access them with

  class point {
        decimal lat { get; set; }
        decimal long { get; set; }
  }

Or you can alternately specify an XML namespace in your RestRequest and use the same class definition.

@lukencode
Copy link
Author

Thanks mate I will give that a go. The api is last.fm and the method I was calling was http://www.last.fm/api/show?service=396

@johnsheehan
Copy link
Contributor

Be sure to report back if it does OR doesn't work. I'd like to know either way :)

@lukencode
Copy link
Author

Yeah that worked, cheers.

@johnsheehan
Copy link
Contributor

great!

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

No branches or pull requests

2 participants