Browse Source

HPCC-10423 Fix regression xpath('') shouldn't output xml tag

xpath('') is used to store mixed content when a tag with both attributes
and content are needed.

<tag att='mixed'>content</tag>

This regression caused the content to be inside an extra tag.

<tag att='mixed'><name>content</name></tag>

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Tony 11 years ago
parent
commit
b2d9613edb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common/fileview2/fvsource.cpp

+ 1 - 1
common/fileview2/fvsource.cpp

@@ -43,7 +43,7 @@ inline void appendNextXpathName(StringBuffer &s, const char *&xpath)
 
 void splitXmlTagNamesFromXPath(const char *xpath, StringAttr &inner, StringAttr *outer=NULL)
 {
-    if (!xpath || !*xpath)
+    if (!xpath)
         return;
 
     StringBuffer s1;