Article View: aus.computers.java
Article #48Re: Pls help...How to parse a tag-delimited file to draw lines and circles using java?
From: acalcium
Date: Mon, 10 Oct 2005 09:13
Date: Mon, 10 Oct 2005 09:13
34 lines
1972 bytes
1972 bytes
priya_j2ee@yahoo.com wrote: > Can anyone please explain how I can open and parse a tag delimited text > file and draw a dotted > > line joining the points mentioned in the tag <A>. The type J will form > a circle inside the > > dotted box. I want to implement this in Java. > > ex: > <list> > <A x="1.2" y="0.5"/> > <A x="1.2" y="10.1"/> > <type="J"> > <pt x="5.0" y="3.0"/> > <pt x="3.0" y="6.0"/> > <pt x="5.0" y="8.0"/> > <pt x="8.0" y="6.0"/> > </type> > <A x="11.0" y="0.5"/> > <A x="11.2" y="10.1"/> > > This may be an XML file. > > I am trying to implement a project and I am stuck in this.. Pls help. > > Thanks much > What have u tried so far? If u want to use XML, may I suggest jdom. Save u a lot of pain.
Technical Details
Message-ID:
<434a30b6$1@dnews.tpgi.com.au>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!News-Peer-Europe!news-peer-europe.sprintlink.net!news.net.hanse.com!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mailReferences:
<1128891921.034861.296700@g14g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d6db,427a335a6fb2067c X-Google-Attributes: gid10d6db,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 10 Oct 2005 19:13:31 +1000 From: acalcium <acalcium@aol.com> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: aus.computers.java Subject: Re: Pls help...How to parse a tag-delimited file to draw lines and circles using java? References: <1128891921.034861.296700@g14g2000cwa.googlegroups.com> In-Reply-To: <1128891921.034861.296700@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 60.240.164.132 X-Original-NNTP-Posting-Host: 60.240.164.132 Message-ID: <434a30b6$1@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1128935606 60.240.164.132 (10 Oct 2005 19:13:26 +1000) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!News-Peer-Europe!news-peer-europe.sprintlink.net!news.net.hanse.com!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail