이 규칙은 XML을 구문 분석하는 데 필요한 WebLogic setAttribute 및 getAttribute 속성의 사용을 발견합니다. 이 규칙은 Java 코드를 발견합니다. 독립 규칙은 이 기능을 사용할 수 있는 WebLogic weblogic.servlet.XMLParsingHelper의 사용을 발견합니다.
예제:
request.setAttribute("org.xml.sax.helpers.DefaultHandler", someObject)
예제:
String handler = "org.xml.sax.helpers.DefaultHandler";
request.setAttribute(handler, someObject);
예제: Document myDocument = request.getAttribute("org.w3c.dom.Document")
예제:
String handler = "org.w3c.dom.Document";
Document myDoc = request.getAttribute(handler);
예제:
request.setAttribute("org.xml.sax.helpers.DefaultHandler", myHandler);
request.getAttribute("org.w3c.dom.Document");
빠른 수정사항이 이전 행에 적용되는 경우, 이러한 행이 삭제됩니다.
참고: 오브젝트(myHandler)가 나중에 코드 내에서 사용되는 경우 기타 방식으로 초기화되는지 확인하십시오.
예제:
Document myDocument = request.getAttribute("org.w3c.dom.Document");
빠른 수정사항이 적용되는 경우, 이전 코드가 다음과 같이 변경됩니다.
Document myDocument;
참고: 오브젝트(myDocument)가 나중에 코드 내에서 사용되는 경우 기타 방법으로 초기화되는지 확인하십시오.