Anonymous | Login | Signup for a new account | 11-21-2024 22:08 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0003283 | [Quercus] | minor | always | 01-19-09 04:47 | 01-19-09 04:47 | |||||||
Reporter | philz | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | Platform | ||||||||
Status | new | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | 3.1.2 | ||||||||
Product Build | ||||||||||||
Summary | 0003283: CData sections don't appear to work with SimpleElement | |||||||||||
Description |
When using SimpleElement with CData sections, does not pick up data within CDATA section. When attempting to output the mapping element using the code below, content only appears for the first table element in Quercus. When using PHP on Apache, appears in both. |
|||||||||||
Steps To Reproduce | ||||||||||||
Additional Information |
Using following PHP // method declaration public function buildDoc($xmlString) { $content = file_get_contents($xmlString); $xml = new SimpleXMLElement($content); foreach ($xml->import as $import) { foreach ($import->table as $table) { $name = $table['name']; $filter = $table['filter']; $variable = $table['variable']; $mapping = $table->mapping; echo "Name: " . $name . " "; echo "Filter: " . $filter . " "; echo "Variable:" . $variable . " "; echo "Mapping: " . $mapping . " "; } } } Reading the following XML: <?xml version="1.0" encoding="ISO-8859-1"?> <imports> <import> <table name = "orders" filter = "order_id" variable = "order_id"> <mapping> order_reference=externalReference; contact_name=customer.contactName; </mapping> </table> <table name = "order_line" filter = "order_id" variable = "order_id"> <sql> select quantity, product_cfrom order_line, product where order_line.product_id = product.product_id </sql> <mapping> <![CDATA[ quantity=orderLine.[index].quantity product_code=orderLine.[index].quantity ]]> </mapping> </table> </import> </imports> |
|||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed. 24 unique queries executed. |