0
I’m consuming this one xml of a api and storing its contents String
Its structure is this way:
<opml version="1">
<head>
<title>Título</title>
<status>200</status>
</head>
<body>
<outline type="link" text="op_1" URL="http://dados.com/op.ashx?c=1" key="1"/>
<outline type="link" text="op_2" URL="http://dados.com/op.ashx?c=2" key="2"/>
<outline type="link" text="op_3" URL="http://dados.com/op.ashx?c=3" key="3"/>
<outline type="link" text="op_4" URL="http://dados.com/op.ashx?c=4" key="4"/>
<outline type="link" text="op_5" URL="http://dados.com/op.ashx?c=5" key="5"/>
<outline type="link" text="op_6" URL="http://dados.com/op.ashx?c=6" key="6"/>
<outline type="link" text="op_7" URL="http://dados.com/op.ashx?c=7" key="7"/>
</body>
</opml>
How can I read your type, text and URL of each Outline?
It seems to me that you want to make a kind of Code to this XML and, with that, get this information that you want. For this there are several tools among which a widely used is the SAX parser. I leave you a link with an example of using this parser.
– Vítor Sá