Traversing tree made from DefaultMutableTreeNode tree
We have a tree structure implemented using the DefaultMutableTreeNode specified in Java. Is there any way of traversing it, that is inbuilt? If not, please suggest other techniques. ...
We have a tree structure implemented using the DefaultMutableTreeNode specified in Java. Is there any way of traversing it, that is inbuilt? If not, please suggest other techniques. ...
HI, I am using VB.NET to read an XHTML file. I need my program to find every element within the XML structure which has the "class" attribute set to a specific value. IE: I need an array (or similar list) of all elements from the document which contain class="mytag". There is a list of several values I need to detect, all of which sta...
Is there an easy way to parse HTTP date-strings in Python? According to the standard, there are several ways to format HTTP date strings; the method should be able to handle this. In other words, I want to convert a string like "Wed, 23 Sep 2009 22:15:29 GMT" to a python time-structure. ...
Is there an elegant way to be permissive in date input in C# to accommodate user input like '2009-09-31' (e.g. September 31, which doesn't exist and causes DateTime.Parse to choke)? Ideally I would like to parse this as October 1 (e.g. latest possible date plus overflow). ...
Hi. I want to store some data from structures like this: class Project { ChildA a; ChildB b; } class ChildA { ChildC c; ... } ... I have created data like: Projet x = new Project(); x.a = new ChildA(); x.a.c = new ChildC(); ... and I want to save it to an external file on the sdcard of my device so that other apps...
hello again i've got one more question today are there any html parsers with not strict syntax analyzers available? as far as i can see such analyzers are built in web browsers i mean it should be very nice to get a parser that indulgently process the input document allowing any of the following situations that are invalid in xhtml and ...
Greetings. Imagine you've been given a string (from somewhere you can't control). In that string is a decimal number. You want to add commas (ie: turn 1234567.89 into 1,234,567.89) to that number while keeping the entire string intact. The currency symbol before the number will vary, but the comma-formatting doesn't have to vary by c...
I'm trying to pull a DateTime object from RSS feeds in C# and DateTime.Parse(string) was working fine for the BBC rss feed which has a format like: Thu, 24 Sep 2009 13:08:30 GMT But when I try and use that for Engadget's feed which has a date format like Thu, 24 Sep 2009 17:04:00 EST throws a FormatException. Is there something straigh...
HTML parser...My recent project needs a web spider..it automatically get web content which it gets the links recursively.... But, it needs to know its content exactly. like tag. it runs in linux and windows..do you know some opensource about this needs.. thanx or about some suggestion. ...
Hi, I'm currently parsing an RSS feed and subparsing the html in the description field in order to create a custom XML structure. In the description field there are ‘ and ’ signs and PHP outputs them as regular question marks. How come? I've tried different encodings like UTF-8 and iso-8859-1 but nothing works.. This is the xml I'm p...
Hello, I am using Postfix smtp server for receiving mails. My requirement is to take the mail objects from Postfix and parse the mail objects so that the individual mail objects can be used in my java code as soon as a mail is received by Postfix. One of the solutions that i have come up is to have a content filter communicating wit...
hi guys, i'm totally new to jquery and i was looking around to see if this can be done. basically i have a xml tree structure that looks like this: <?xml version="1.0" encoding="utf-8" ?> <RecentTutorials> <Tutorial author="The Reddest"> <Title>Silverlight and the Netflix API</Title> <Categories> <Category>Tutorials</Cat...
How to parse a string of date in an arbitrary specified Oracle date format in C#? So... the oracle format string is a bit different from the C# datetime format string, so I can't use that format-string as an argument for the parse. I am using Devart/CoreLab but their OracleDate.Parse seems to be really strange and not working for me. H...
Hi, I saw the following example on Nabble, where the goal was to return all nodes that contain an attribute with an id of X that contains a value Y: //find all nodes with an attribute "class" that contains the value "test" val xml = XML.loadString( """<div> <span class="test">hello</span> <div class="test"><p>hello</p></div> </div>""" )...
I'm about to write my own .ashx handler to receive hCard data and return a properly-formatted VCF file and - when I get around to it - to handle hCalendar events as well. I know the Microsoft Oomph project does something very similar (in fact, I plan to base much of my work off that service). Are there a range of open services availabl...
I have to parse the XML file and build objects representation based on that, now once I get all these data I create entries in various database for these data objects. I have to do second pass over that for value as in the first pass all I could do is build the assets in various databases. and in second pass I get the values for all the ...
Is there any (E)BNF parser out there which is able to generate XML trees of the AST? Rephrasing: what is the quickest way to compile an (E)BNF defined language into some sort of XML? Bonus: Using Javascript :-) ...
I would like to design a math language satisfying EBNF, to let me write equation systems and inequalities as close to natural math language as possible. I would like to have two parsers for this little language, one parser prepares the equalities/inequalities written in this language for publication, another parser prepares it for comput...
I'm trying to parse data from Archive.org's search functionality. The data looks like this: <doc> <float name="avg_rating">5.0</float> <arr name="collection"><str>U-Melt</str><str>etree</str></arr> <arr name="format"><str>Checksums</str><str>Flac</str><str>Flac FingerPrint</str> <str>Metadata</str><str>Ogg Vorbis</str><st...
I am writing an application that has a very loosely defined config file that is read in during startup. The file is easy to parse and looks something like the following: tag1 = value1 tag2 = value2 tag3 = value3 tag4 = value4 with tags and values being the information that a user may want to configure. As I said previously, the file...