I'm experienceing a problem using the Foundation / Execute Query component.
I'm trying to insert XML into a table using the following INSERT Statement:
INSERT INTO temp_registration (ID, registrationXML)
VALUES ({$ /process_data/@lastID $}, '{$ /process_data/registrationXML $}')
lastID (integer variable) and the registrationXML (xml variable) are populated during the process.
The insert statement works, but the result i see in the database is not what i expect:
The input (simplified):
<?xml version="1.0" encoding="utf-8"?>
<XML>
<Account>
<FirstName>Rob</FirstName>
</Account>
<Request>
<documentID>1</documentID>
</Request>
</XML>
The result in the database looks like:
When using MySQL Workbench with the following INSERT statement the data is inserted as i expect...
INSERT INTO temp_registration (id, registrationXML)
VALUES (55, '<?xml version="1.0" encoding="utf-8"?> <XML> <Account> <AccountEmail>email@email.com</AccountEmail> <FirstName>Rob</FirstName> </Account> <Request> <documentID>1</documentID> </Request> </XML>')
The LiveCycle logs states the following btw:
2010-12-07 15:11:44,850 INFO [SqlHelper] execute statement: INSERT INTO temp_registration (ID, registrationXML)
VALUES (44, '
email@email.com
Rob
1
')
VALUES (44, '
email@email.com
Rob
1
')
Where and why does this interpreation of my inputXML come from??
Thx!