Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 当symbol"&&引用;存在_Objective C_Xml_Parsing - Fatal编程技术网

Objective c 当symbol"&&引用;存在

Objective c 当symbol"&&引用;存在,objective-c,xml,parsing,Objective C,Xml,Parsing,如果在XML解析器执行时有一个类似“Fuel&Additions”的字符串,它会忽略“&”符号之前的任何,为什么 if ([elementname isEqualToString:@"GLDesc"]) { currentParsedObjectContainer.GLDesc = currentNodeContent; NSLog(@"%@",currentParsedObjectContainer.GLDesc); } 我想说它与字符代码有关(例如<)。但

如果在XML解析器执行时有一个类似“Fuel&Additions”的字符串,它会忽略“&”符号之前的任何,为什么

    if ([elementname isEqualToString:@"GLDesc"]) 
{
   currentParsedObjectContainer.GLDesc = currentNodeContent;
       NSLog(@"%@",currentParsedObjectContainer.GLDesc);
}

我想说它与字符代码有关(例如<)。但我对xml不是很熟悉,所以我不确定。试试&?

我想说它与字符代码有关(例如<)。但我对xml不是很熟悉,所以我不确定。试一试

符号和字符(&)和 左角括号( 符号和字符(&)和
左尖括号(在xml中,
&
必须转义到
,在xml中,
&
必须转义到