The objective of my script is to strip a xml file into a mysql table.
The script read the file, recognize the tags but when i populate the string come empty!
i think is not necessary to put all te code, the start and end elements are secundary (i think
Code: Select all
(...)
function charData($parser, $data)
{
global $dentro, $title, $sint, $tail;
if($dentro)
{
switch($tag)
{
case "HEADLINE":
$title .= htmlspecialchars($data)
case "LEADPAR":
$sint .= htmlspecialchars($data)
case "TAILPAR":
$tail .= htmlspecialchars($data)
}
}
}Now i know the reason, but i do not know how i can solve it.
Inside the tags in the xml file are another tag's who causes de emptyness of the strings.
How can i get the information on the tag without this anoying tag??<paragraph display="proporcional" truncation="none">
tks