Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Doesn't seem to work with veeeery long XML #16

Description

@felixfbecker

I have XML from an API like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ftexport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://api.festivalticker.de/xml/export4.xsd">
    <title>Export</title>
    <url>http://www.festivalticker.de/</url>
    <event>
        <id>35964</id>
        <datum>15.09.29</datum>
        <enddatum></enddatum>
        <begin>1494352800</begin>
        <name>Genetikk</name>
        <genre>Rap</genre>
        <location>Turbinenhalle</location>
        <zip>46047</zip>
        <city>Oberhausen</city>
        <street>Im Lipperfeld 23</street>
        <land>de</land>
        <descript><![CDATA[]]></descript>
        <artists>Genetikk</artists>
        <price>VVK 28.15 €</price>
        <website>http%3A%2F%2Fwww.genetikk.de%2F</website>
        <fturl>http://www.festivalticker.de/konzerte/genetikk_35964/</fturl>
        <timestamp>1426993206</timestamp>
        <what>Konzert</what>
    </event>
    <event>
        <id>356...

This list goes on with events for 26000 lines. However, after parsing, root.children contains only 3 elements (only the first event):

{ declaration: { attributes: { version: '1.0', encoding: 'UTF-8', standalone: 'yes' } },
  root:
   { name: 'ftexport',
     attributes:
      { 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
        'xsi:noNamespaceSchemaLocation': 'http://api.festivalticker.de/xml/export4.xsd' },
     children:
      [ { name: 'title', attributes: {}, children: [], content: 'Export' },
        { name: 'url', attributes: {}, children: [], content: 'http://www.festivalticker.de/' },
        { name: 'event',
          attributes: {},
          children:
           [ { name: 'id', attributes: {}, children: [], content: '35964' },
             { name: 'datum', attributes: {}, children: [], content: '15.09.29' },
             { name: 'enddatum', attributes: {}, children: [], content: '' },
             { name: 'begin', attributes: {}, children: [], content: '1494352800' },
             { name: 'name', attributes: {}, children: [], content: 'Genetikk' },
             { name: 'genre', attributes: {}, children: [], content: 'Rap' },
             { name: 'location', attributes: {}, children: [], content: 'Turbinenhalle' },
             { name: 'zip', attributes: {}, children: [], content: '46047' },
             { name: 'city', attributes: {}, children: [], content: 'Oberhausen' },
             { name: 'street', attributes: {}, children: [], content: 'Im Lipperfeld 23' },
             { name: 'land', attributes: {}, children: [], content: 'de' },
             { name: 'descript', attributes: {}, children: [], content: '' } ],
          content: '' } ],
     content: '' } }

What could be the reason? Is it because the tags have the same name? Because the file is so long?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions