| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE digester-rules PUBLIC "-//Apache Commons //DTD digester-rules XML V1.0//EN" "http://commons.apache.org/digester/dtds/digester-rules-3.0.dtd"> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <digester-rules namespaceURI="http://www.w3.org/2005/Atom"> |
| <pattern value="feed"> |
| <object-create-rule classname="org.apache.commons.digester3.xmlrules.Feed" /> |
| <bean-property-setter-rule pattern="title" /> |
| <bean-property-setter-rule pattern="updated" /> |
| <bean-property-setter-rule pattern="id" /> |
| <set-properties-rule pattern="link"> |
| <alias attr-name="href" prop-name="link" /> |
| </set-properties-rule> |
| <call-method-rule pattern="author/name" methodname="addAuthor" usingElementBodyAsArgument="true" /> |
| |
| <pattern value="entry"> |
| <object-create-rule classname="org.apache.commons.digester3.xmlrules.Entry" /> |
| <bean-property-setter-rule pattern="title" /> |
| <bean-property-setter-rule pattern="updated" /> |
| <bean-property-setter-rule pattern="id" /> |
| <set-properties-rule pattern="link"> |
| <alias attr-name="href" prop-name="link" /> |
| </set-properties-rule> |
| <set-next-rule methodname="addEntry" fireOnBegin="true" /> |
| </pattern> |
| </pattern> |
| </digester-rules> |