search for: isvalidxmlstring

Displaying 1 result from an estimated 1 matches for "isvalidxmlstring".

2012 Feb 01
1
[PATCH] hivexml
...23:39:14.995639422 -0500 > @@ -33,6 +33,7 @@ > #endif > > #include <libxml/xmlwriter.h> > +#include <libxml/chvalid.h> > > #include "hivex.h" > > @@ -209,6 +210,22 @@ filetime_to_8601 (int64_t windows_ticks) > } > > static int > +isValidXMLString(const char *string) Can we call this is_valid_xml_string? I hate camel-casing. > +{ > + int c; > + int len = strlen(string); > + int pos = 0; > + int charlen = len; > + while ((c = xmlGetUTF8Char(string+pos, &charlen)) >= 0) { > + if (xmlIsCharQ(c) == 0) >...