Both a valid XML, although the second one would be difficult to define a schema for.
/Component/owner=@module name=xyz
is not valid XPath. I'm not sure what you're actually trying to retrieve from the XML file?
Here some XPath tutorials:
http://www.google.com/search?hl=en&q=xpath+tutorial
http://en.wikipedia.org/wiki/XPath#External_links