MCPcopy Index your code
hub / github.com/MapServer/MapServer / msOWSCommonxmlNewChildEncoded

Function msOWSCommonxmlNewChildEncoded

mapowscommon.c:611–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611xmlNodePtr msOWSCommonxmlNewChildEncoded( xmlNodePtr psParent, xmlNsPtr psNs, const char* name,
612 const char *content, const char *encoding)
613{
614 char *encoded = NULL;
615 xmlNodePtr psNode;
616
617 if (encoding && content)
618 {
619 encoded = msGetEncodedString(content, encoding);
620 psNode = xmlNewChild(psParent, psNs, BAD_CAST name, BAD_CAST encoded);
621 msFree(encoded);
622 return psNode;
623 }
624 else
625 return xmlNewChild(psParent, psNs, BAD_CAST name, BAD_CAST content);
626}
627
628/*
629 * Valid an xml string against an XML schema

Callers 1

msWFSDumpLayer11Function · 0.85

Calls 2

msGetEncodedStringFunction · 0.85
msFreeFunction · 0.85

Tested by

no test coverage detected