hmmm… suponhamos que eu tenha um xml com a seguinte estrutura:
<config>
<window>
<title>teste</title>
<size x="100" y="200"/>
</window>
<templates>
<layout name="teste1" file="file1.xml"/>
<layout name="teste2" file="file2.xml"/>
</templates>
</config>
criei o parser, etc… e tenho o Document comigo… agora, o que eu queria fazer é alguma chamada em que eu pudesse descrever o documento pelos tags, algo como
titulo = funcao("config.window.title").value;
sizeX = funcao("config.window.size.x).value;
sizeY = funcao("config.window.size.y).value;
ou entao talves
Node[] templates = funcao("config.templates").getChildNodes;
e entao, por acaso existe alguma maneira de fazer algum dos dois (ou talves, os dois?!)
