Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
b2d9613edb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;