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 8294169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:06:36+00:00 2026-06-08T14:06:36+00:00

I have used org.w3c.dom.Node.getTextContent() metthod to get the text value, the same is working

  • 0

I have used org.w3c.dom.Node.getTextContent() metthod to get the text value, the same is working fine in Eclipse. When we run it as stanalone, it is taking :class org.apache.xerces.dom.DeferredElementImpl and failing. Please advice on how to get org.w3c.dom.Node.getTextContent() at runtime.

  • 1 1 Answer
  • 0 Views
  • 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-06-08T14:06:37+00:00Added an answer on June 8, 2026 at 2:06 pm

    org.w3c.dom.Node is an interface. org.apache.xerces.dom.DeferredElementImpl is an implementation of that interface (really, an implementation of org.w3c.dom.Element, a subinterface of Node). There are other implementations. If you write a program that uses Node, then when you run it, you will actually be using one of the implementations.

    It seems that DeferredElementImpl does not implement getTextContent() properly. Although it’s hard to be sure of that, given that you haven’t said what the actual problem was.

    It seems that in Eclipse, you are using some implementation other than DeferredElementImpl, and that implementation implements getTextContent() properly. On my installation of Eclipse, i get a com.sun.org.apache.xerces.internal.dom.ElementImpl if i create an element in the normal way.

    com.sun.org.apache.xerces.internal.dom.ElementImpl is the standard implementation bundled in the Sun JRE. If you are getting a different implementation, it is because you have a non-standard XML parser on your classpath. That is perfectly fine, but it’s something you should be aware of. If you examine your standalone application’s classpath, you should find a parser that isn’t there when you run in Eclipse.

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

Sidebar

Related Questions

I have a file which imports org.w3c.dom.Document. Compiling and running is fine, but I
I have used a plugin that uses prototype js, it's working fine but the
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
I have used emacs for erlang programming. According to http://emacswiki.org/emacs/CompileCommand , I have configure
i have a DTD file which i used to accessed through this link: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
I have used 3 some jquery related files namely <script type=text/javascript src=/blog/jquery/jquery-1.7.1.min.js></script> <link type=text/css
i have my script working but currently it used a button input, i want
i have my doctype set as: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
I have used the silverlight control in CRM 2011.It also published on form but
We have used Shibboleth to authenticate users. It works great. The issue is that

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.