0
내가 좋아하는 XML 문서 등이하기 위해, 일반적인 태그, 여러 빌더를 작성하고 싶습니다 : 나는 노코 기리 :: XML 내부의 공통 부분을 넣어하는 방법을 모른다nokogiri builder로 공통 태그를 어떻게 분해합니까?
<xml version="1.0"?>
<a_kind_of_root>
<!-- This part is common -->
<event_date>20100514</event_date>
<event_id>123</event_id>
<event_type>Conference</event_type>
<!-- This part is specific to the builder -->
<my_tag>some text</my_tag>
</a_kind_of_root>
</xml>
<xml version="1.0"?>
<another_kind_of_root>
<!-- This part is common -->
<event_date>20100514</event_date>
<event_id>123</event_id>
<event_type>Conference</event_type>
<!-- This part is specific to the builder -->
<my_other_tag>some integer</my_other_tag>
</another_kind_of_root>
</xml>
을 :: 빌더
감사
당신은 그 방법이 일반적인 이벤트 정보를 추가해야 & 방법에 빌더를 전달할 수 있습니다
고마워, 당신은 SAV 내 하루 에드! 사실, 나는 그것을 제외한 모든 것을 시도합니다. 잠이 필요합니다. – Gravis