Results 1 to 7 of 7
- 08-19-2010, 09:35 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 29
- Rep Power
- 0
compare the remaining of Strings for equality
E.g. <kind>moon</kind>
If one string starts with < (and not </) and the other starts with </, is there any way of comparing the remaining for equality.
As an idea, I want to push the string starting with < into stack, when / is encountered pop off from stack.
Thanks.
- 08-19-2010, 09:52 AM #2
Don't multipost!! You have an answer in your other thread.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 08-19-2010, 10:03 AM #3
Member
- Join Date
- Jun 2010
- Posts
- 29
- Rep Power
- 0
It was not Answer
- 08-19-2010, 11:53 AM #4
- 08-19-2010, 12:06 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
imho using a proper XML parser is the way to go but feel free to hack something together and we can show you the exceptions, i.e. Strings accepted by your hacky solution while they shouldn't and Strings rejected by your solution while they should be accepted. IgnoreList++
Jos
- 08-19-2010, 02:10 PM #6
I think this is a student exercise to see what it takes to write a XML parser.
See posts at To parse Strings without parsing libraries - Page 2 - Java
-
Similar Threads
-
compare the remaining of Strings for equality
By Cylab in forum New To JavaReplies: 5Last Post: 08-19-2010, 02:42 PM -
Compare between 2 Strings
By ChaosINC in forum New To JavaReplies: 3Last Post: 01-17-2010, 11:39 AM -
[SOLVED] Cant compare strings sent by client
By christuart in forum NetworkingReplies: 15Last Post: 09-01-2008, 03:24 AM -
JSTL -- Comparing two strings for equality
By trinkets in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-12-2008, 04:39 PM -
how to compare two strings
By elizabeth in forum New To JavaReplies: 7Last Post: 08-06-2007, 03:57 AM


LinkBack URL
About LinkBacks


Bookmarks