Skip to content

Commit

Permalink
Refactored header files.
Browse files Browse the repository at this point in the history
Support for DTD serialization.
Text-like nodes get an XML property, besides the basic text value.
  • Loading branch information
atlopes committed May 27, 2017
1 parent c60c65c commit cb61d7c
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 83 deletions.
27 changes: 27 additions & 0 deletions xml-serializer.h
Expand Up @@ -5,3 +5,30 @@
#DEFINE XMLSERIAL_WHITESPACE "WhiteSpace"
#DEFINE XMLSERIAL_PROCESSINGINSTRUCTIONS "ProcessingInstructions"
#DEFINE XMLSERIAL_COMMENTS "Comments"
#DEFINE XMLSERIAL_DTD "DTD"

*!* VFP node names, or part names, for encoding or exporting

#DEFINE XML_SIMPLEATTR UPPER(XML_ATTRIBUTE)
#DEFINE XML_SIMPLETEXT "_value_"
#DEFINE XML_NFATTR "_attr_"
#DEFINE XML_NFTEXT "_nodetext_"

*!* processed XML nodes as VFP nodes, other than elements (always arrayed)

#DEFINE XML_PI "xmlprocessinginstruction"
#DEFINE XML_COMMENT "xmlcomment"
#DEFINE XML_DTD "xmldtd"
#DEFINE XML_ORPHANTEXT "xmlorphantext"

*!* name of serialized VFP properties

#DEFINE XMLP_NAME "xmlname"
#DEFINE XMLP_TEXT "xmltext"
#DEFINE XMLP_NS "xmlns"
#DEFINE XMLP_PREFIXES "xmlprefixes"
#DEFINE XMLP_POSITION "xmlposition"
#DEFINE XMLP_COUNT "xmlcount"
#DEFINE XMLP_ATTRIBUTES "xmlattributes"
#DEFINE XMLP_QNAME "xmlqname"
#DEFINE XMLP_SOURCE "xmlsource"

0 comments on commit cb61d7c

Please sign in to comment.