ʹ��JAXP����XSLT�������
����ʹ��jaxp��dom��ʽ����xml�ĵ�
jaxp�ṩ��DocumentBuilderFactory��DocumentBuilder������������������dom��ʽ��xml������DocumentBuilderFactory���ṩ��һ�����úͻ�ȡһ����ʵ���ص�DOM �������ķ�����DocumentBuilderFactory�Ƕ��̲߳���ȫ�ģ���˳���Ա�ڿ���ʱҪ�Լ��������̳߳�������servlet��jsp���������������⡣ DocumentBuilderFactory���ж���ķ������±���
������ | ʹ��˵�� |
Object getAttribute(java.lang.String name) | ͨ����������������Ի�ȡ����ʵ�ֵ�һЩ���ԡ� |
boolean isCoalescing() | �����Ƿ��DocumentBuilderFactory��״̬���ó�����һ���ܹ���CDATA����ת����textȻ�ϲ����ڵ�Text�Ľ�����������coalesce����˼�ǡ��Ӻϡ�����˼�� |
boolean isExpandEntityReferences() | �������ɵĽ������Ƿ���չEntityReference�� |
boolean isIgnoringComments() | �������ɵĽ������Ƿ����ע�͡� |
boolean isIgnoringElementContentWhitespace() | �������ɵĽ������Ƿ�������õĿհס� |
boolean isNamespaceAware() | �������ɵĽ������Ƿ�֧�����ռ䡣 |
boolean isValidating() | �������ɵĽ������Ƿ�У�顣 |
DocumentBuilder newDocumentBuilder() | ���ݵ�ǰ����������һ��DocumentBuilder��DocumentBuilder��jaxp�е�dom�������� |
DocumentBuilderFactory newInstance() |
�����̬��������һ��DocumentBuilderFactory��ʵ�������ɵľ���ʵ����ѭ���¹���
|
void setAttribute(java.lang.String name, java.lang.Object value) | ����һ��ͬ����ʵ����ص����ԡ� |
void setCoalescing(boolean coalescing) | �����Ƿ����CDATAת���ͺϲ���ȱʡ�������false�� |
void setExpandEntityReferences(boolean expandEntityRef) | �����Ƿ�չ��ʵ�����ã�ȱʡ�������true�� |
void setIgnoringComments(boolean ignoreComments) | �����Ƿ����ע�ͣ�ȱʡ�������false�� |
void setIgnoringElementContentWhitespace(boolean whitespace) | �����Ƿ���Կɺ��ԵĿհڵ㣬ȱʡ�������false�����������Ҫ����У��(validate)�� |
void setNamespaceAware(boolean awareness) | �����Ƿ�֧�����ռ䣬ȱʡΪfalse�� |
void setValidating(boolean validating) | �����Ƿ�У�飬ȱʡΪfalse�� |
DocumentBuilder�ඨ����һϵ�еķ����ӿڣ�ͨ����Щ�ӿڣ����ǿ��Դ�һ��XML�ĵ�������Ӧ������Դ����ƾ�ջ��һ��Document�����ʵ�ֶ����仰˵���ǿ��Ի��һ���ĵ����� DocumentBuilder�������ͨ��DocumentBuilderFactory���newDocumentBuilder������á�DocumentBuilder����֤�ڶ��̹߳���һ��DocumentBuilder����ʱ��������⣬���ԣ���ò�Ҫ����̹߳���һ��DocumentBuilder����DocumentBuilder���ж���ķ������±���
������ | ʹ��˵�� |
DOMImplementation getDOMImplementation() | ��ȡһ��DOMImplementation��ʵ����DOMImplementation�����ʵ�����Խ������ĵ��ص�dom������ |
boolean isNamespaceAware() | �����Ƿ�֧�����ռ䡣 |
boolean isValidating() | �����Ƿ�У�顣 |
Document newDocument() | ƾ�մ���һ���µ�Document���� |
Document parse(java.io.File f) | ��һ���ļ�����һ��Document���� |
Document parse(InputSource is) | ��һ��InputSource����һ��Document���� |
Document parse(java.io.InputStream is) | ��һ������������һ��Document���� |
Document parse(java.io.InputStream is, java.lang.String systemId) | ��һ������������һ��Document�������ṩһ������uri��Ŀ¼�� |
Document parse(java.lang.String uri) | ��һ��uri����һ��Document���� |
void setEntityResolver(EntityResolver er) | |
void setErrorHandler(ErrorHandler eh) |
����Ĵ�����ʾ�����ʹ��DocumentBuilder��DocumentBuilderFactory�����н�����
���������һ����������������ʾ���ʹ��jaxp����dom��ʽ��xml������ơ�������ӻ�������ǰ��������ʾ�������������ʹ��jaxp������xerces��Ϊxml��������
![]() You are Visitor No: |
This site is under construction and all of the information that you've got from this site is subject to change. This site is best viewed with Mozilla--the greatest and buggiest browser in the history!-- and IE5.5 is applicable.
Sept. 16, 2001
�����ں�ҹ֮��ǹɱ���֡���������