Skip to content

Commit

Permalink
avoid a couple of compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jan 29, 2024
1 parent b7f66a9 commit 1cf38de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/base/NSXMLNode/description.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
int
main(int argc, const char *argv[])
{
NSString *filePath;
NSString *xmlDocStr;
NSXMLDocument *xmlDoc;
NSXMLElement *rootElement;
Expand All @@ -23,7 +22,9 @@
SKIP("library built without libxml2")
#else
xmlDocStr = @"<?xml version=\"1.0\" encoding=\"utf-8\"?><env:Envelope xmlns:env=\"http://myurl/mypath/envelope\"><InvokeStampatore xmlns=\"http://tempuri.org/\"> <Flusso><IdFlusso>DF247309-57F8-4CDB-8711-6E9DB69BCE74</IdFlusso><Sorgente>FOX/EDI</Sorgente><DataRichiesta>2012-06-26T17:00:00.717</DataRichiesta><OraRichiesta>17:00</OraRichiesta> <NumeroDocumenti>10</NumeroDocumenti><Lettera><IdCrm>FakeField</IdCrm><TipoDocumento>1001</TipoDocumento><DataDocumento>2012-06-26T14:45:08.673Z</DataDocumento><Utente>FakeUser</Utente><Priorita>Normale</Priorita><PraticaName>FakeName</PraticaName><ContentHeader> <fieldList> <Field><name>Campaign.Name</name> <value>Campagna ENP</value></Field><Field><name>Cliente.Cap</name><value>37053</value></Field></fieldList></ContentHeader></Lettera></Flusso></InvokeStampatore></env:Envelope>";
xmlDoc = [[NSXMLDocument alloc] initWithXMLString:xmlDocStr options:0 error:error];
xmlDoc = [[NSXMLDocument alloc] initWithXMLString: xmlDocStr
options: 0
error: &error];

//NSLog(@"%@", xmlDoc);
rootElement = [xmlDoc rootElement];
Expand Down

0 comments on commit 1cf38de

Please sign in to comment.