I want parse a xml file like this:

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets";
id="http://nfbw/8D0E7479EC3E294ED04A23D0C79D3C2DF325536E";
version="1.1.0" width="360" height="120">
<title>World Weather</title>
<description>ACCESS NetFront Browser Widgets: World Weather</description>
<author url="http://www.access.co.jp/nfbwc/";
email="nfbw_supp...@access-company.com">ACCESS CO., LTD.</author>
<license>All rights are reserved by ACCESS CO., LTD., whether the whole
or part of the source code including any modifications. Copyright(c)
2008 ACCESS CO., LTD.</license>
<icon src="icon.png" />
<access network="true" />
<xwidget profile="1.0"
distributeurl="https://www.access.co.jp/nfbwc/update_check.php";>
<accessControl>
<netaccess host="forecastfox.accuweather.com" port="80" />
<netaccess host="vortex.accuweather.com" port="80" />
</accessControl>
<display type="QVGA" width="180" height="60" />
<display type="VGA" width="360" height="120" />
</xwidget>
</widget>

I always got Exception like this:

04-22 09:08:07.749: WARN/System.err(275):
org.apache.harmony.xml.ExpatParser$ParseException: At line 14, column 2:
unclosed token
04-22 09:08:07.749: WARN/System.err(275): at
org.apache.harmony.xml.ExpatParser.finish(ExpatParser.java:538)
04-22 09:08:07.749: WARN/System.err(275): at
org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:468)
04-22 09:08:07.749: WARN/System.err(275): at
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:329)
04-22 09:08:07.749: WARN/System.err(275): at
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:286)

Can't "<accessControl>...</accessControl>" and "<display>" coexist ?

thx

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to