Skip to content

Is it possible to parse only the first few <item> in an xml? #318

@subhash279

Description

@subhash279
  • Are you running the latest version? Yes
  • Have you included sample input, output, error, and expected output? Yes
  • Have you checked if you are using correct configuration? Yes
  • Did you try online tool? Yes

Description

We have some large xml data(more than 1000 <item>s) but we only need the first 20. Is it possible to limit the number of <item>s to parse so that it will only return the first 20. This will save 80% of our computation time.

Input

Code

Output

expected data

  • Only first 20 s in xml data

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-RequestNew features suggested by users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions