• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Required parts of XML to Learn

 
Ranch Hand
Posts: 36
1
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I reviewed a book about XML and I think that parts of XML that i should read from that book is :
1 - attributes and elements
2 - namespaces
3 - XPath ( for @ and / parts that i have seen in XML files in Android projects . for example "@+id/my_button" )

My Question : Is this true ??? and Should i learn XPath for learning / parts and @ parts of Android XML ( for example "@+id/my_button" ) ??? Should i learn another parts of XML ???

Thanks for your help
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While knowing XML is pretty much a must for any developer these days, what you need for Android is not particularly challenging. #1 - yes (anyone should know about those), #2 - knowing what namespaces are used for, and how, is good, but for Android you don't really need that, #3 - again, it's good to know what XPath in general is used for, but it's not needed for Android (those @ and / have nothing to do with XPath, they're just naming conventions used by Android).
 
Ranch Hand
Posts: 47
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I honestly wouldn't spend your time reading a book on XML for Android, it is one of the simpler parts of Android IMO. I just learned it as I went along. You'd be better off reading how the various LayoutParams work for each the ViewGroups and how layout_weight works and such.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic