Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 6 December 2019 at 08:58:38 UTC, Joseph Rushton Wakeling wrote: as they were all related to HTML parsing Indeed, it is biased toward that use case, but it actually does quite a few extra things too that I don't market as much (and takes some extra code to fully enable - like the em

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-06 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 5 December 2019 at 16:28:48 UTC, Adam D. Ruppe wrote: On Thursday, 5 December 2019 at 16:14:01 UTC, Joseph Rushton Wakeling wrote: And -- mostly out of curiosity -- what are the major differences compared to other D XML libraries or my beloved dom.d Indeed! Sorry for missing it

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread JN via Digitalmars-d-announce
On Thursday, 5 December 2019 at 16:48:01 UTC, zoujiaqing wrote: ## Sample code for it ```D import hunt.xml; @XmlRootElement("user") class User { @XmlAttribute("ID") int id = 1001; @XmlElement("USERNAME") string name; } I like the declarative API, can't wait to give it a go. R

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread zoujiaqing via Digitalmars-d-announce
Just based on a quick check, it looks like the `validate` method used in your example is just about strictly correct XML -- does the library provide any support for validating messages against a schema? Yes, we will add valid() function to check it. And -- mostly out of curiosity -- what a

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 5 December 2019 at 16:14:01 UTC, Joseph Rushton Wakeling wrote: And -- mostly out of curiosity -- what are the major differences compared to other D XML libraries or my beloved dom.d

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 5 December 2019 at 15:55:29 UTC, zoujiaqing wrote: # Hunt-XML A XML library for D Programming Language. Support for parsing, encoding, serialize, unserialize, object binding! ## Features * DOM parser: parse XML Document * DOM writer: to string and to file * Object serialization/de

Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread zoujiaqing via Digitalmars-d-announce
# Hunt-XML A XML library for D Programming Language. Support for parsing, encoding, serialize, unserialize, object binding! ## Features * DOM parser: parse XML Document * DOM writer: to string and to file * Object serialization/deserialization ### Sample code for parsing ```D import hunt.xml;