Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3610416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:44:58+00:00 2026-05-18T21:44:58+00:00

I have a directory of large xml files with the following setup: <io:InfoObjects xmlns:crole="http://enterprise.businessobjects.com/3.0/customrole"

  • 0

I have a directory of large xml files with the following setup:

<io:InfoObjects xmlns:crole="http://enterprise.businessobjects.com/3.0/customrole" 
 xmlns:fo="http://enterprise.businessobjects.com/3.0/folder"  
 xmlns:io="http://enterprise.businessobjects.com/3.0/infoobject" 
 xmlns:md.dc="http://enterprise.businessobjects.com/3.0/metadata.dataconnection"  
 xmlns:un="http://enterprise.businessobjects.com/3.0/universe" 
 xmlns:wi="http://enterprise.businessobjects.com/3.0/webi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://enterprise.businessobjects.com/3.0/customrole BusinessObjects_CustomRole.xsd  
 http://enterprise.businessobjects.com/3.0/folder BusinessObjects_Folder.xsd 
 http://enterprise.businessobjects.com/3.0/infoobject BusinessObjects_InfoObject.xsd  
 http://enterprise.businessobjects.com/3.0/metadata.dataconnection BusinessObjects_MetaData_DataConnection.xsd 
 http://enterprise.businessobjects.com/3.0/universe BusinessObjects_Universe.xsd 
 http://enterprise.businessobjects.com/3.0/webi BusinessObjects_Webi.xsd" version="1200" illegalCharsEncoded="true">
 <io:InfoObject xsi:type="wi:Webi">
  <io:ID>1</io:ID> 
  <io:Name>MyName</io:Name>
  <io:Description>NoDesc</io:Description>
 </io:InfoObject>
</io:InfoObjects>

I am currently using dom and parsing through each node/element until I find my specific type of wi:Webi. This seems terribly inefficient and feel that I am missing a Java function that would allow me to simply extract all elements/nodes with the type of "wi:Webi". Is there a simpler solution?

I am using Java 1.5.

Updates

I am starting to use XPath but, am having issues with the expression creation. So far I am trying:

xpath.compile("//*[@xsi:type='wi:Webi']");

According to other Stack Overflow posts who had similar issues I need to define in my expression the namespace. I was hoping that the *[@xsi:type] search would state for any child with type of wi:Webi return it as in the nodelist.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:44:59+00:00Added an answer on May 18, 2026 at 9:44 pm

    There’s “runs fast and light” efficiency, then there’s “developer writing fewer lines of code” efficiency. Which are you most concerned about?

    If it’s speed, look into SAX processing as it cannot be overstated how much more efficient it can be if your requirements can get by with it. It’s quite a mental adjustment going from DOM to SAX but I recommend it.

    Otherwise if you need to stick with DOM, look at XPath to easily extract all matching elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a directory of very large XML files with a structure as this:
I have an application that stores large amount of files (XML and binary) in
Let's say I have to read from a directory that has many large XML
Question We have a large number of xml configuration files that we want merged
I have a large application spread across multiple Spring bean definition xml files. In
I've got a large directory of files, many (but not all) of which have
I want to commit a large amount of XML files which have been modified.
I have directory with > 1000 .html files, and would like to check all
I have directory A with files matching directory B. Directory A may have other
Let's say I have Directory 1 and Directory 2, and each can have files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.