Skip to content

Child nodes not returned in query #23

@Lexmark-gudeguzman

Description

@Lexmark-gudeguzman

If I have this in XML:

<strings>
<textitem type="COMPLEX" textID="TXT_RELOAD_PRINTED_PAGES_IN_SOURCE" translated="YES" description="IR header string. This will be used for IR for inserting duplex pages. The source tag will be replaced by the requested paper source.">
    <context contextID="TX_CONTEXT_2x16">
      <subcontext abbrevFlag="UNKNOWN" maxLines="4" subcontextID="TX_SUBCONTEXT_DEFAULT" prefFontSize="16" maxPels="25">
        <text><![CDATA[Reload printed pages<br/>in <source/>]]></text>
      </subcontext>
    </context>
    <context contextID="TX_CONTEXT_4x20">
      <subcontext abbrevFlag="UNKNOWN" maxLines="2" subcontextID="TX_SUBCONTEXT_DEFAULT" prefFontSize="16" maxPels="160">
        <text><![CDATA[Reload printed pages<br/>in <source/>]]></text>
      </subcontext>
    </context>
  </textitem>
</strings>

And does:
StreamParser::xml($request->fileUrl)->each(function(Collection $item) {
var_dump($item);
});

Only the last <context> node is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions