Notice
Recent Posts
Recent Comments
Link
- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
민서네집
[jquery] xml 노드 객체를 String으로 변환하기 본문
Convert xml to string with jQuery
위 페이지에서 나온 방법 중 자바스크립트 메서드를 만들어 쓰는 방법을 사용해 봤다.
Pass jquery xml object to this function
function getXmlString($xmlObj) { var xmlString=""; $xmlObj.children().each(function(){ xmlString+="<"+this.nodeName+">"; if($(this).children().length>0){ xmlString+=getXmlString($(this)); } else xmlString+=$(this).text(); xmlString+=""; }); return xmlString; }
'Javascript' 카테고리의 다른 글
클로져(Closure)를 이용한 체인 깨기 (0) | 2013.05.01 |
---|---|
html5를 지원하게 해주는 라이브러리 (0) | 2013.04.11 |
[jquery] ajax 에서 HTTP Request Header 값 넣기. (0) | 2013.04.03 |
jQuery 템플릿 (0) | 2013.03.23 |
JSONP 를 이용한 도메인 간 통신 - JSONP의 원리 (0) | 2012.08.29 |
Comments