xml-decorators
Decorators for xml serialization. Uses js2xmlparser under the hood.
Usage of decorators
; ; ;; // optional
Serialization
;;; ;
Or if you want to override the root tag name or did not used the @XMLElement
annotation.
;
Result
dog cat
Async
xml .serializeAsyncbob .thenconsole.logbobXml ;
Schema
If you want to retrieve the "js2xmlparser" schema instead:
xml.getSchemabob;xml.getSchemaAsyncbob.then/* */;