Your use-case is quite particular, there isn't something out-of-the-box
that can satisfy it.
Fortunately for you, it seems like you should be able to use
org.xml.sax.XMLFilter + a little custom code to solve this.

Radu

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 7:18 AM
To: user@xmlbeans.apache.org
Subject: XmlEntry filter??


Hi

how can i filter some elements in a XmlEntry??

This is my XmlEntry (only a snapshot):

<xml-fragment xmlns:xsi="http://whatever"; xmlns:xtce="http://something";>
  <SequenceContainer name="default_Container" shortDescription="This is 
a default container">
    <EntryList>
      <ParameterRefEntry parameterRef="parameterOne">
      </ParameterRefEntry>
    </EntryList>
  </SequenceContainer>
  <SequenceContainer name="ContainerOne" shortDescription="Packet
one...">
    <EntryList>
      <ParameterRefEntry parameterRef="parameterTwo">
        <LocationInContainerInBits>
          <FixedValue>129<FixedValue>
        </LocationInContainerInBits>
      </ParameterRefEntry>
      <ParameterRefEntry parameterRef="parameterThree">
        <LocationInContainerInBits>
          <FixedValue>132<FixedValue>
        </LocationInContainerInBits>
      </ParameterRefEntry>
    </EntryList>
  </SequenceContainer>
  <SequenceContainer name="ContainerTwo" shortDescription="Packet
two...">
    <EntryList>
      <ParameterRefEntry parameterRef="parameterFour">
      </ParameterRefEntry>
      <ParameterRefEntry parameterRef="parameterFive">
      </ParameterRefEntry>
    </EntryList>
  </SequenceContainer>
</xml-fragment>

I use this to build a XmlTree. My Problem is that i need only 
"ContainerOne" and "ContainerTwo". The complete xml-file contains many 
more container. I need something to ignore all the container which have 
the word "default" in the name.

Is there a way to do this??

Thanks.

Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to