0

I use NSXMLDocument to generate a xml string:

NSXMLDocument *doc = [[NSXMLDocument alloc]init];
[doc setVersion:@"1.0"];
[doc setCharacterEncoding:@"UTF-8"];

its generating:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

How i can remove 'standalone="no"

Qing Xu
  • 2,704
  • 2
  • 22
  • 21

1 Answers1

1

As far as I understand the dokumentation there is no way to avoid it from being generated. In this SO question it's also mentioned. But if you read the accepted answer of Igor Konoplyanko you can try to use XSLT to remove it. The linked question is about java but I think in objective-c there will be similar functions.

Community
  • 1
  • 1
bish
  • 3,381
  • 9
  • 48
  • 69